
46
Operating Instructions
•
Session 2:
. Press
x
and
c
to decrease the linear speed to 0.3 m/s the
angular speed to 0.2 rad/s, and then drive the NeuronBot around using the keyboard driver. After mapping
the environment, remember to save the map
before
closing gmapping.
•
Session 4:
7. Source the environment.
source /opt/ros/<YOUR_ROS1_DISTRO>/setup.bash
source ~/neuronbot2_ros1_ws/devel/setup.bash
roscd neuronbot2_nav/maps/
8. Save the map
.
A map file and a config file will be saved to
neuronbot2_nav/maps
.
rosrun map_server map_saver -f map_name
9. Stop gmapping by pressing
ctrl + c
in the gmapping session (Session 3).
5.3.3. Navigation
After getting a static map, running a SLAM package is not recommended due to its computational load. This
section describes how to use an AMCL package to locate the NeuronBot using a previously generated map and
existing laser scan. This will allow you to move the NeuronBot from one location to a specified destination.
Note:
Ensure that everything in the base driver has been launched before running SLAM.
Terminal 1,
Session 3:
1. Source the environment.
source /opt/ros/<YOUR_ROS1_DISTRO>/setup.bash
source ~/neuronbot2_ros1_ws/devel/setup.bash
2. Start the navigation procedure by executing the following command.
roslaunch neuronbot2_nav bringup.launch map:=map_name
RViz:
3. Click the
Add
button in the lower left.