ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Is it ok to comment out joint state publisher node from turtlebot package?

asked 2015-12-02 14:59:41 -0500

npa gravatar image

updated 2015-12-05 03:39:00 -0500

When i comment it out i am getting an error showing there is no transformation between basefoot print and the left and right wheels. How to remove this error? Will the error go if i give some joint velocities for the turtle bot wheels?

My problem is this..I need to connect a turtlebot arm to the turtlebot . So i called the xacro file of the turtlebot arm from the turtlebot_library.urdf.xacro. So when i launch the turtlebot in rviz the turtlebot with arm comes with the joint_state_publisher python tab where i can control the the joint states of the arm joints and the bot wheels.

But when i run the arm controller the arm is vibrating back and forth between the position given by the joint_state_publisher and the arm controller. So i searched how to stop this..then i found in a website to comment out joint_state_publisher if arm controler is used.But when i comment out it, a error is showing in turtlebot tires (when launched in rviz) saying there is no transformation between left and right wheells with base_foot print.... (but the vibration of the arm stops and the controller works fine)

So is there any way to stop publishing the joint states of the arm instead of commenting out the joint_state_publisher of turtlebot or will the error will be resolved if i send some position messages to the turtlebot wheels?

Please help...thanks in advance

edit retag flag offensive close merge delete


where do you see the error? In RViz or somewhere else? Can you copy the full text and path of the file you have modified?

Morgan gravatar image Morgan  ( 2015-12-02 17:56:06 -0500 )edit

in rviz.... i just commented out joint_state_publisher node in rviz launch file

npa gravatar image npa  ( 2015-12-06 10:28:13 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-12-02 18:35:53 -0500

tfoote gravatar image

It's not recommended to comment it out.

It's ok to comment it out if you don't want transforms in your system. As you've observed without it publishing the joint states, robot_state_publisher cannot publish the transforms for the different links.

So if you publish the wheel states then you will be replicating the joint_state_publisher.

Why do you want to comment ou tthe joint state publisher?

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-12-02 14:59:41 -0500

Seen: 308 times

Last updated: Dec 05 '15