
NeuronBot
List of Figures
45
Tip:
In
ros_menu/config.yaml
in the ADLINK Neuron Startup Menu, you can add commands to the “cmds”
section. For example, in ROS 1 Melodic, we added a “source” command so that every time a new session and
terminal is opened, the menu automatically loads the NeuronBot workspace environment. This way, there is no
longer a need to “source” ROS and NeuronBot anymore.
Menu:
ROS 1 melodic:
option_num: 1
ROS_version: 1
distro_name: melodic
ros1_path: /opt/ros/melodic
master_ip: 192.168.50.26
cmds:
- source ~/neuronbot2_ros1_ws/devel/setup.bash
5.3.2. Laser SLAM
This section describes how to build a map using a 2D laser scanner.
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 laser localization and mapping procedure with gmapping by executing the following command.
roslaunch neuronbot2_slam gmapping.launch
RViz:
3. Click the
Add
button in the lower left.
4. Click the
By topic
tab to display available topics.
5. Select
Map
and click
OK
to display the map created using gmapping.