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

move_base_node

asked 2014-09-04 12:41:04 -0500

2ROS0 gravatar image

I was going through the code base of ROS navigation. I have some difficulty understanding the name field and type field for running a node in a launch file.

For example, I run the move_base node using the following line in my launch file.

node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen"

However, when I look at the source code for move_base, it has a file named move_base_node and during initialization as well is called "move_base_node"

ros::init(argc, argv, "move_base_node");

But the executable that is present in my devel folder is called "move_base". I wonder how the naming is supposed to work and how did it get changed.

The CMakelists file also contains "move_base_node" and not "move_base".

Thank you for your time.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-09-04 12:49:34 -0500

2ROS0 gravatar image

It's due to the set_target_properties(move_base_node PROPERTIES OUTPUT_NAME move_base) function in the CMakeLists.txt file.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2014-09-04 12:41:04 -0500

Seen: 448 times

Last updated: Sep 04 '14