LENNA Mobile Robot is a differential-drive mobile robot platform intended for research and education. The repository maintains equivalent ROS1 and ROS2 simulations to support both legacy and modern robotics workflows.
- Ubuntu 24.04 (Noble)
- ROS2 Jazzy (Desktop install)
- Gazebo Harmonic (installed with
ros-jazzy-ros-gz) colconandrosdep
Install the core simulation dependencies (Gazebo bridges, robot description tools, and the TurtleBot3 worlds):
$ sudo apt update
$ sudo apt install -y \
python3-colcon-common-extensions python3-rosdep \
ros-jazzy-ros-gz \
ros-jazzy-xacro \
ros-jazzy-robot-state-publisher \
ros-jazzy-joint-state-publisher-gui \
ros-jazzy-tf2-ros \
ros-jazzy-rviz2 \
ros-jazzy-teleop-twist-keyboard \
ros-jazzy-turtlebot3-gazeboInstall the SLAM and navigation dependencies (slam_toolbox and Nav2):
$ sudo apt install -y \
ros-jazzy-slam-toolbox \
ros-jazzy-navigation2 \
ros-jazzy-nav2-bringupInstall the stereo depth and point cloud dependencies:
$ sudo apt install -y \
ros-jazzy-cv-bridge \
ros-jazzy-message-filters \
python3-opencv \
python3-numpyAlternatively, you can resolve any remaining package dependencies with rosdep from the root of your workspace:
$ sudo rosdep init # only needed once per machine
$ rosdep update
$ rosdep install --from-paths src --ignore-src -r -y --rosdistro jazzyCopy the lmr2_description and lmr2_stereo_depth package from this repository into your ROS workspace and build the package with colcon.
$ colcon build --symlink-install --packages-select lmr2_description lmr2_stereo_depth
$ source install/setup.bashTo visualize the LMR2 URDF model in RViz2, use the display.launch.py file:
$ ros2 launch lmr2_description display.launch.pyTo spawn the LMR2 robot in Gazebo using the default TurtleBot world, launch gazebo.launch.py:
$ ros2 launch lmr2_description gazebo.launch.py world:=turtlebot3_house x:=1.5 y:=-2.5 yaw:=1.57SLAM and autonomous navigation with Nav2 run as three separate processes. Open three terminals, source the workspace in each, and start them in the following order.
Terminal 1: Gazebo simulation
Start the simulation first and wait until the robot has spawned in the world:
$ ros2 launch lmr2_description gazebo.launch.pyTerminal 2: SLAM
Start slam_toolbox to build the map and publish the /map topic and the map → odom transform:
$ ros2 launch lmr2_description slam.launch.pyTerminal 3: Nav2 navigation
Start the Nav2 stack for path planning and control:
$ ros2 launch lmr2_description nav2.launch.pyWhen all three are running, use the 2D Goal Pose tool in RViz2 to send a navigation goal. The robot plans a path, drives to the goal, and expands the map as it explores.
Note
Keep the launch order: Gazebo first, then SLAM, then Nav2. Nav2 relies on the /map topic and map → odom transform from slam_toolbox, so it will not activate until the simulation and SLAM are up. Nav2 parameters can be changed in lmr2_description/config/nav2_params.yaml or passed with params_file:=<path>.
The lmr2_stereo_depth package computes depth and a 3D point cloud from the simulated stereo camera pair. It attaches to an already running simulation and does not start Gazebo itself, so launch Gazebo first and then start the stereo depth module in a new terminal:
# Terminal 1
$ ros2 launch lmr2_description gazebo.launch.py
# Terminal 2
$ ros2 launch lmr2_stereo_depth lmr2_stereo_sim.launch.pyAdd rviz:=true to open the depth visualization in RViz2. Processing parameters are read from lmr2_stereo_depth/config/stereo_depth.yaml and can be overridden with params_file:=<path>. The depth module can also run alongside SLAM and Nav2 in a fourth terminal.
The ROS1 version provides a complete simulation environment for the LMR1 platform using the ROS Noetic ecosystem.
Copy the lmr1_description package from this repository into your ROS workspace and build the package.
$ catkin build lmr1_description
$ source devel/setup.bashTo visualize the LMR1 URDF model in RViz, use the display.launch file:
$ roslaunch lmr1_description display.launchTo spawn the LMR1 robot in Gazebo using the default TurtleBot world, launch gazebo.launch:
$ roslaunch lmr1_description gazebo.launch|
You can run $ roslaunch lmr1_description gmapping.launch$ roslaunch lmr1_description hector.launch |
|
You can run $ roslaunch lmr1_description navigation.launch |
If you use this code or build upon this work, please cite:
@INPROCEEDINGS{11213761,
author={Riazati, Erfan and Hajizadeh, Arian and Esmaeilzadeh, Seyed Majid},
booktitle={2025 33rd International Conference on Electrical Engineering (ICEE)},
title={Design and Implementation of a Modular ROS-Based Mobile Robot with Hierarchical Control},
year={2025},
volume={},
number={},
pages={1038-1043},
keywords={Visualization;Simultaneous localization and mapping;Navigation;Computer architecture;Real-time systems;Hardware;Mobile robots;Synchronization;Tuning;Testing;mobile robot;hierarchical control;distributed control;navigation;SLAM;ROS},
doi={10.1109/ICEE67339.2025.11213761}}


