Ask Your Question
0

MoveIt joint_state_publisher not publishing to robot_state_publisher

asked 2015-04-23 12:55:50 -0500

Huitan gravatar image

I am working on a 7-DOF manipulator with MoveIt and have calculated a series of joint vectors. I want to publish these joint vectors to the joint states topic so as to see the visualization in Rviz. However, after the implementation I did see the visualization in Rviz but there were "jumping backs" to the original manipulator configuration from time to time. I went into the problem and found that the correct messages were being published to the joint states topic, but robot_state_publisher was not receiving these messages, so no new tfs were updated (the manipulator still stayed at the original configuration, I think this is why there were "jumping backs") .

As a test, I used the joint_state_publisher GUI to publish messages to the joint states topic and I did see tf updates from robot state publisher. So what I do not understand is why publishing using GUI results in new tfs but publishing using codes does not.

I checked and ensured there were joint_state_publisher and robot_state_publisher nodes running and robot_state_publisher node did subscribe to the joint states topic.

Any ideas would be greatly appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-04-28 09:00:15 -0500

Huitan gravatar image

Publishing JointState messages under the topic "/move_group/fake_controller_joint_states" instead of "joint_states" solved the problem. Joint state publisher rebroadcasts the messages so robot state publisher gets the new messages and updates the tfs.

edit flag offensive delete link more

Comments

Hello, I know this is old but how did you change the topic from joint_statess to fake_controller_joint states ? I have the same issue, and I didn't find where the topic is defined in all the launch files of the moveit config package. Best

edote gravatar image edote  ( 2020-09-16 05:18:01 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-04-23 12:55:50 -0500

Seen: 1,761 times

Last updated: Apr 28 '15