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

Move_base launching error

asked 2013-08-02 13:38:07 -0600

this post is marked as community wiki

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

Hi! We made our own move_base package according to the original one and tried to launch it on the PR2. But ros could not find our package. We already set up our ROS PACKAGE PATH to our workspace. The error are following

[c2-0]: ERROR: cannot launch node of type [move_base_3/move_base]: move_base_3
ROS path [0]=/opt/ros/fuerte/share/ros
ROS path [1]=/opt/ros/fuerte/share
ROS path [2]=/opt/ros/fuerte/stacks
[c2-0]: ... done launching nodes

And here is our ros package path messages

edit retag flag offensive close merge delete


can you post your launch file as well?

Zee-Q gravatar image Zee-Q  ( 2013-08-02 15:11:31 -0600 )edit

I solved that problem. I targeted the node to c2, but it was copied to c1. Thanks!

HanXiao gravatar image HanXiao  ( 2013-08-05 10:46:00 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-08-05 08:26:25 -0600

ahendrix gravatar image

The launch is failing on c2 because your environment loader is not setting your ROS_PACKAGE_PATH up properly on c2.

Please see:

edit flag offensive delete link more


Yes, we set the route to c1 because our code were on c1.

HanXiao gravatar image HanXiao  ( 2013-08-05 10:46:40 -0600 )edit

c1 and c2 have the same filesystem; anything you do on one machine is also on the other. Your ROS environment variables are not automatically transferred from one to the other when you do a roslaunch; this is why you must set up an environment-loader.

ahendrix gravatar image ahendrix  ( 2013-08-05 11:45:32 -0600 )edit

I _STRONGLY_ recommend running move_base on c2, because the laser drivers are on c2, and it will significantly decrease the amount of traffic and latency between servers if move_base and the laser drivers run on the same machine.

ahendrix gravatar image ahendrix  ( 2013-08-05 11:47:09 -0600 )edit

Thanks! We will try to do that. By the way, how to specify c1 and c2 when copying codes in pr2?

HanXiao gravatar image HanXiao  ( 2013-08-06 13:55:43 -0600 )edit

You can specify which machine a node runs on by using the machine="" property of the <node> tag in your launch file. You do not need to copy anything from c1 to c2.

ahendrix gravatar image ahendrix  ( 2013-08-06 14:10:03 -0600 )edit

Question Tools

1 follower


Asked: 2013-08-02 13:38:07 -0600

Seen: 366 times

Last updated: Aug 05 '13