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

Difference between rosrun and directly launching an executable

asked 2013-03-15 04:05:01 -0500

victorp gravatar image

What are the differences between :

rosrun mynode program

And :

cd /path/to/mynode
./program

Why is the first (I assume) preferred, and when is it required ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-03-15 04:10:14 -0500

dornhege gravatar image

In principle it should do the same.

The difference is that you don't need to know the actual path to program in the package.

Also rosrun will run the node of package mynode, not the node in /path/to/mynode. Usually that is the same, but if you switched you workspace or something like that you might run something of another setup than you think you are.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-15 04:05:01 -0500

Seen: 453 times

Last updated: Mar 15 '13