O'Reilly logo

Learning ROS for Robotics Programming by Enrique Fernández, Aaron Martinez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a launch file for the navigation stack

Now, we have all the files created and the navigation stack is configured. To run everything, we are going to create a launch file. Create a new file in the chapter8_tutorials/launch folder and put the next code in a file with the name move_base.launch:

<launch> <!-- Run the map server --> <node name="map_server" pkg="map_server" type="map_server" args="$(find chapter8_tutorials)/maps/map.yaml" output="screen"/> <include file="$(find amcl)/examples/amcl_diff.launch" > </include> <node pkg="move_base" type="move_base" respawn="false" name="move_base" output="screen"> <rosparam file="$(find chapter8_tutorials)/launch/costmap_common_params.yaml" command="load" ns="global_costmap" /> <rosparam file="$(find ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required