Ask Your Question
0

Move_base launching error

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

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

/u/jfasola/fuerte_workspace/sandbox:/u/jfasola/fuerte_workspace/sandbox:/opt/ros/fuerte/stacks:/opt/ros/fuerte/share:/opt/ros/fuerte/share/ros
edit retag flag offensive close merge delete

Comments

can you post your launch file as well?

Zee-Q gravatar image Zee-Q  ( 2013-08-02 15:11:31 -0500 )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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

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: http://pr2support.willowgarage.com/wiki/Tutorials/Setting%20up%20the%20ROS_ENV_LOADER

edit flag offensive delete link more

Comments

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

HanXiao gravatar image HanXiao  ( 2013-08-05 10:46:40 -0500 )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 -0500 )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 -0500 )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 -0500 )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 -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: 2013-08-02 13:38:07 -0500

Seen: 243 times

Last updated: Aug 05 '13