Gazebo | Ignition | Community
Ask Your Question

Joint Controller does not move robot arm in Gazebo (but works in RViz)

asked 2020-05-07 16:58:23 -0500

Iyantiram gravatar image

updated 2020-05-16 17:46:41 -0500

Hello All,

My problem is that when publishing a message to the joint state controller, I can see the robot moves it's arms in RViz but not in Gazebo. Can anyone help me figure out what is wrong? Going through similar questions, it seems like the joint_state_publisher and the plugins have to be added, and I did so.

I have this:

<plugin name="ros_control" filename="">

and this:

<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher">
    <param name="use_gui" value="true"/>

in my urdf and launch files.

Yet, when changing the joints with the joint-publisher-gui, the changes are reflected in RViz but not in gazebo.

Thank you,


edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2020-05-18 03:00:14 -0500

Shrutheesh R Iyer gravatar image

updated 2020-05-18 03:00:57 -0500

Hello, I am fairly new to Gazebo as well, so please take my answer with a pinch of salt. Essentially, the joint state publisher will not publish the right joint states of the robots, and publishes values only for your 'fake' RViz simulation.

You need to create a controllers.yaml file, specifying your joints and the joint state publisher, and spawn a controller_manager and robot state publisher to reflect it in Gazebo.

I found this video to be very helpful. I followed the steps here to get my setup to work.

edit flag offensive delete link more


நன்றி Thanks for the link. Will update my question if I get it working.

Iyantiram gravatar imageIyantiram ( 2020-06-07 19:39:15 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-05-07 16:58:23 -0500

Seen: 39 times

Last updated: May 18