-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues on connecting ros2_control to gazebo #1818
Comments
Is there any error output in the console log of the controller? The only check is the size of the data array must match. |
I don't have any error for the forward: And for the broadcaster I have the same successfully loaded controller and I have warnings : But after the initialization, I don't have any new logs when I'm using the publisher |
can you verify that your gazebo model works at all? I've never seen these warnings. |
Hello, I'm using ROS2 Jazzy and I have issues on connected ros2 to gazebo.
I want to control the 18 joints of my robot with forward_position_controller.
I have 2 controllers initialized : ForwardCommandController and JointStateBroadcaster
ros2 control list_controllers
forward_position_controller forward_command_controller/ForwardCommandController active
joint_state_broadcaster joint_state_broadcaster/JointStateBroadcaster active
We can see that all my joints are available
ros2 control list_hardware_interfaces
command interfaces
joint_patte_1A_patte_1B/position [available] [claimed]
joint_patte_1B_patte_1C/position [available] [claimed]
joint_patte_1C_patte_1D/position [available] [claimed]
joint_patte_2A_patte_2B/position [available] [claimed]
joint_patte_2B_patte_2C/position [available] [claimed]
joint_patte_2C_patte_2D/position [available] [claimed]
joint_patte_3A_patte_3B/position [available] [claimed]
joint_patte_3B_patte_3C/position [available] [claimed]
joint_patte_3C_patte_3D/position [available] [claimed]
joint_patte_4A_patte_4B/position [available] [claimed]
joint_patte_4B_patte_4C/position [available] [claimed]
joint_patte_4C_patte_4D/position [available] [claimed]
joint_patte_5A_patte_5B/position [available] [claimed]
joint_patte_5B_patte_5C/position [available] [claimed]
joint_patte_5C_patte_5D/position [available] [claimed]
joint_patte_6A_patte_6B/position [available] [claimed]
joint_patte_6B_patte_6C/position [available] [claimed]
joint_patte_6C_patte_6D/position [available] [claimed]
I can read the initial position of my joints with JointStateBroadcaster
And my publisher is publishing every 1 second between 2 valid positions.
We can see a typical message :
ros2 topic echo forward_position_controller/commands
layout:
dim: []
data_offset: 0
data:
But on gazebo, the robot isn't moving. I don't have any changes on the joint_state topic. I don't have new messages on the terminal of my launch
Am I missing something ?
The text was updated successfully, but these errors were encountered: