
NeuronBot
List of Figures
53
Tip:
In
ros_menu/config.yaml
in the ADLINK Neuron Startup Menu, you can add commands to the “cmds”
section. For example, in ROS 2 Dashing, 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 2 dashing:
option_num: 2
ROS_version: 2
distro_name: dashing
ros2_path: /opt/ros/dashing
domain_id: # set if you don't want to use default domain id
cmds:
- source_plugin dds_bashrc 1
- source ~/neuronbot2_ros2_ws/install/local_setup.bash
5.4.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 2:
1. Source the environment.
source /opt/ros/<YOUR_ROS2_DISTRO>/setup.bash
source ~/neuronbot2_ros2_ws/install/
local_
setup.bash
2. Start the laser localization and mapping procedure with the Slam Toolbox by executing the following
command.
ros2 launch neuronbot2_slam slam_toolbox
_
launch.py
RViz2:
3. Click the
Add
button in the lower left.