Skip to content

Software

linorobot2

By Linorobot, Singapore (checked on github.com/linorobot (opens in a new tab)), from github.com/linorobot/linorobot2 (opens in a new tab)

  • Navigation and mapping
  • Framework
  • Runs on hardware you can build
  • Apache-2.0

A ROS 2 package that takes a robot from bare hardware to autonomous navigation, with Nav2, SLAM Toolbox and robot_localization pre-wired, and a Gazebo simulation using the same configs.

Facts

GitHub stars
1,094read on 28 Nov 2026
Last update
28 Nov 2026Newest commit on jazzy
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate
Hardware it needs, as the project states it
A robot computer running the ROS 2 stack, plus a microcontroller such as a Teensy running micro-ROS firmware for physical robots; a workstation runs the Gazebo simulation.

Checked on GitHub on 28 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit ff05444 (opens in a new tab), on 28 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Provides working configurations for Nav2, SLAM Toolbox and the robot_localization EKF, shared by physical and simulated robots.
  • Ships a templated robot URDF with a 2D lidar, an RGBD depth camera and an IMU, adjustable through one properties file.
  • Lets you convert a floor plan image into a Gazebo world using the image_to_gazebo GUI tool.
  • Batch-converts saved SLAM maps into Gazebo worlds with the create_worlds_from_maps tool.
  • Supports a range of 2D lidars and RGBD depth cameras, with drivers and topic remappings set up by the install script.
  • Supports 2WD, 4WD and Mecanum drive bases, with micro-ROS firmware for Teensy-class microcontrollers that publishes odometry and IMU data.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Active, last commit on 28 Nov 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit ff05444

Robotheca read the repository at two versions: the summary at f6b0bd0 and the facts and the README at ff05444 (read on 28 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by Linorobot, at commit ff05444, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Documentation: https://linorobot.github.io/linorobot2 (opens in a new tab)


linorobot2

linorobot2

linorobot2 is a ROS2 package that takes your robot from bare hardware to fully autonomous navigation. Whether you're building a physical robot from accessible parts, simulating in Gazebo, learning Nav2, or prototyping new hardware, linorobot2 gives you a complete, working foundation with Nav2, SLAM Toolbox, and robot_localization already wired together.

Supported base configurations: 2WD, 4WD, and Mecanum drive.

What Can You Do With It?
  • Build a real autonomous robot. Follow the hardware guide (opens in a new tab) to assemble your robot from off-the-shelf parts, flash the micro-ROS firmware, and run SLAM and Nav2 with a single command.
  • Simulate in Gazebo. A pre-configured robot URDF with lidar, depth camera, and IMU is ready to spawn. The same launch files and Nav2 configuration work for both physical and simulated robots, with no separate config to maintain.
  • Simulate your real environment. Convert a floor plan image or a SLAM-generated map directly into a Gazebo world. Test your ROS2 application in the exact same layout as your physical space, with the same obstacles your lidar sees, with no need to run the robot.
  • Learn Nav2. The documentation walks through the Nav2 setup guides (opens in a new tab) journey step by step: base controller, odometry, sensors, transforms, SLAM, and navigation. Each concept is explained before it is configured.
  • Prototype new hardware. Use the templated URDF as a starting point for your own robot design. Swap in your CAD meshes, adjust the sensor poses, and validate the kinematics in Gazebo before cutting any parts.
  • Build ROS2 applications. The simulation stack provides a consistent, reproducible environment for developing and testing autonomy code including path planners, state machines, and perception pipelines, without needing physical hardware on hand.
Features
Nav2, SLAM Toolbox, and robot_localization (pre-integrated)

linorobot2 ships with working configurations for the full ROS2 autonomous navigation stack. Nav2, SLAM Toolbox, and the robot_localization EKF are configured and ready to go. The same YAML files are used by both the physical robot and the Gazebo simulation, so tuning in simulation transfers directly to hardware.

Architecture

Pre-configured robot with sensors

The robot URDF is templated with a 2D lidar, an RGBD depth camera, and an IMU already included and positioned. Changing the robot's dimensions or sensor mounting positions is a matter of editing one properties file. The URDF is also a solid starting point for building a more detailed model: add your CAD meshes and the rest of the stack continues to work.

Simulate your real environment

Two tools in linorobot2_gazebo let you bring your physical environment into Gazebo:

  • image_to_gazebo: a GUI tool that takes any floor plan image (PNG, JPG, BMP, etc.), lets you calibrate its real-world scale and set the coordinate origin interactively, then generates a complete Gazebo world: 3D wall mesh, model SDF, and world SDF.
  • create_worlds_from_maps: a batch CLI tool that converts all SLAM maps in linorobot2_navigation/maps/ into Gazebo worlds in one command.

Both tools produce a Gazebo world that matches the geometry your lidar sees in the real environment. You can develop and test your Nav2 application in simulation with full confidence that the obstacle layout is accurate, then deploy to the physical robot without surprises.

Wide sensor support

linorobot2 supports a broad range of 2D lidars and RGBD depth cameras out of the box. The install script sets up the correct driver and topic remappings automatically. For a full list, see the Sensors (opens in a new tab) documentation.

Selected supported lidars: RPLIDAR A1/A2/A3/S1/S2/S3/C1, LD06, LD19, STL27L, YDLIDAR, XV11, Intel RealSense (as lidar), ZED (as lidar)

Supported depth cameras: Intel RealSense D435/D435i, ZED/ZED2/ZED2i/ZED Mini, OAK-D/OAK-D Lite/OAK-D Pro

Build your own robot

Detailed hardware documentation covering motor driver configuration and micro-ROS firmware for Teensy and compatible boards is at linorobot2_hardware (opens in a new tab). The firmware publishes odometry and IMU data over micro-ROS so the microcontroller integrates seamlessly as a ROS2 node.

Microcontroller architecture

Quickstart

All commands below run on the robot computer unless noted. SLAM and navigation launch files are identical for physical and simulated robots.

Physical Robot

Terminal 1:Boot the robot:

ros2 launch linorobot2_bringup bringup.launch.py

Wait for the micro-ROS agent to print session established before continuing.

Terminal 2:Create a map:

ros2 launch linorobot2_navigation slam.launch.py

Terminal 3:Drive to map the area:

ros2 run teleop_twist_keyboard teleop_twist_keyboard

Save the map:

cd linorobot2/linorobot2_navigation/maps
ros2 run nav2_map_server map_saver_cli -f <map_name> --ros-args -p save_map_timeout:=10000.

Terminal 2:Navigate autonomously:

ros2 launch linorobot2_navigation navigation.launch.py map:=<path_to_map>/<map_name>.yaml

Visualize from your host machine at any point:

ros2 launch linorobot2_viz slam.launch.py        # during mapping
ros2 launch linorobot2_viz navigation.launch.py  # during navigation
Simulated Robot

Terminal 1:Start Gazebo:

ros2 launch linorobot2_gazebo gazebo.launch.py

Terminal 2:Run SLAM or navigation (same commands as physical robot, add sim:=true):

ros2 launch linorobot2_navigation slam.launch.py sim:=true
# or
ros2 launch linorobot2_navigation navigation.launch.py map:=<path_to_map>/<map_name>.yaml sim:=true
Tools
image_to_gazebo

Convert any floor plan or building layout image into a Gazebo world with a GUI:

ros2 run linorobot2_gazebo image_to_gazebo

Load your image, calibrate the scale by clicking two known points, set the coordinate origin, and click Generate. The tool writes the STL mesh, model SDF, and world SDF to the package's models/ and worlds/ directories. Launch the generated world with:

ros2 launch linorobot2_gazebo gazebo.launch.py world_name:=<world_name>
create_worlds_from_maps

Batch-convert all saved SLAM maps to Gazebo worlds in one command:

ros2 run linorobot2_gazebo create_worlds_from_maps

This reads every YAML file in linorobot2_navigation/maps/, extrudes the occupancy grid into a 3D wall mesh, and writes a Gazebo world for each map. Useful for keeping simulation worlds in sync after a mapping session.

Documentation

Full documentation covering installation, base controller, odometry, sensors, transforms, mapping, navigation and more is in the linorobot2 documentation website (opens in a new tab)

Documentation Maintenance

Documentation is stored in the docs/ (opens in a new tab) directory and its subdirectories as a set of markdown files which are published to the linorobot2 documentation website (implemented using GitHub Pages). This happens automatically on every push to the current actively maintained main branch (e.g. jazzy).

You can browse the docs locally and review your updates prior to committing and publishing:

sudo apt install mkdocs-material
mkdocs serve

Then open http://127.0.0.1:8000 (opens in a new tab) in your browser.

Installation

See the Installation page of the linorobot2 documentation website (opens in a new tab) for full installation instructions covering the Workstation, Robot Computer, Microcontroller, and Docker.

Useful Resources

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.