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

Could not contact the following nodes: * /joint_state_publisher

asked 2011-03-08 20:25:06 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi there!

I'm having a problem when I launch RVIZ with a join_state_publisher. For exemple, when I do the tutorial from this page (Building Movable Robot Model with URDF) and I close it.

When I execute roswtf, appears that message:

"ERROR: Could not contact the following nodes: * /joint_state_publisher"

If I try to kill them with rosnode kill /joint_state_publisher it seem's that be OK, but if I rerun it I gave the same message.

I think that this is important because in next reruns of RVIZ it doesn't works correctly (the model not appears completly).

Any idea?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-03-09 21:00:54 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Finally think that I solved the problem.

I forgot to add in my launch file the correct path for the joint_state_publisher and set the gui parameter to true.

Finally, my launch file looks like this:

<launch>

    <param name="robot_description" textfile="/opt/ros/cturtle/stacks/urdf_tutorial/06-flexible.urdf" />
    <param name="use_gui" value="true"/> 
    <node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher" />
    <node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
    <node name="rviz" pkg="rviz" type="rviz" />

</launch>

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-03-08 20:25:06 -0500

Seen: 1,487 times

Last updated: Mar 09 '11