-
Notifications
You must be signed in to change notification settings - Fork 93
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
/robot_controller/joint_trajectory topic is not translated to Gazebo Sim #456
Comments
I made some new findings: |
Can you only launch gazebo with the robot and its controller and test it with the rqt_joint_trajectory_controller? It uses the same topic. |
I tested what you proposed and neither in gazebo nor in rviz2 the joints move. So I assume even with a correct joint_trajectory message, somehow the control signals don't reach the sim. |
can you provide an example? is it a public repo? |
Furthermore, cart_example_position uses a joint_trajectory controller and this works as it should with rqt_joint_trajectory_controller: tested on rolling with gz_ros2_control from source
Can you reproduce that with jazzy/harmonic? |
Same issue here, using Gazebo and Ros Jazzy with MoveIt2 i have this error. Furthermore I can't even launch cart_example_position.launch.py, as it closes Gazebo instantly returning this error :
|
This looks like an ABI break or incompatible gz version. How have you installed gz and gz_ros2_control? Have you upgraded anything individually instead of |
I tested it on jazzy. Only the Interestingly, although the robot moves in gazebo, the gz_ros2_control as well as the demos are installed as binaries for me. My own repo sadly is not public, but using the moveit servo tutorial with the panda: |
the example_ executables create a publisher and send some values, but don't launch gazebo. Try the launch files instead. See the documentation. |
Hello,
I am on ROS2 Jazzy, Moveit2 and Gazebo Sim Harmonic. I use a custom robot 6DoF Robot which I did the moveit2 setup assistant for, and using the robot with moveit2 in Gazebo Sim Harmonic works.
My issue is, that although launching moveit servo with my custom robot without gazebo is functional, I cannot use it combined with Gazebo Sim.
The issue is see is the Gazebo Plugin for ROS2 Control.
When launching the robot without gazebo, I can use the hardware plugin in my ros2_control.xacro file as this:
When launching my robot in gazebo, I use the gz_ros2_control package as this:
In the case of launching both gazebo and moveit servo, and only launching mock_components plugin, the robot controller I define in gazebo cannot be activated:
The robot is not actuated and flops onto the ground. This makes sense, as the gazebo plugin is missing.
In the case of launching
gz_ros2_control/GazeboSimSystem
as my hardware plugin, I can see that my/robot_controller/joint_trajectory
topic is populated, but neither the robot in rviz2 nor in gazebo move. Somehow, thegz_ros2_control/GazeboSimSystem
does not pick up this topic, although it should? I can see, that the/robot_controller
node is subscribed to/robot_controller/joint_trajectory
.I tested this with ompl and the standard moveit2 p2p motion I can set in the MotionPlanning plugin in rviz, and the
/robot_controller/joint_trajectory
is empty there, too.How can I get the gazebo sim plugin to transfer my joint trajectory to gazebo and move the simulated robot?
Is it another topic I need to publish to for the plugin to work?
Thanks a lot in advance!
All the best and merry christmas,
Julian
The text was updated successfully, but these errors were encountered: