Skip to content
tkdyun.xyz

SLAM & Navigation on Jetson

ROS1/ROS2 localization, mapping and autonomous path planning

Robotics

Year
2026
Role
Solo • Intern · ALLAI
Stack
ROS 2 · Cartographer · Nav2 · Gmapping · Arduino · Jetson
View on GitHub

Overview

ROS 2 packages and configurations developed during my internship at ALLAI. The project builds an autonomous mobile robot using a Jetson Orin Nano as the main computer, an Arduino for low-level motor control, and a YDLidar for environmental perception. Features complete implementations for serial communication, SLAM, and autonomous navigation.

Hardware

  • Jetson Board, Arduino, YDLidar (X4), Robot Chassis with Motors
  • ROS 2, Cartographer, Gmapping, Nav2

Key Packages

  • serial_bridge: Bidirectional Jetson–Arduino communication for motor control
  • allbot / allbot_urdf / allbot_param: Core robot packages with launch files, URDF, and navigation parameters
  • ydlidar_ros2_driver: ROS 2 driver for the YDLidar sensor
  • slam_gmapping: Package for Gmapping SLAM

1 — Jetson-Arduino Motor Control

The serial_bridge node connects to /dev/ttyTHS1 at 115200 baud. It listens to cmd_vel (geometry_msgs/Twist) and sends formatted strings to the Arduino: v <linear.x> <linear.y> <angular.z>\n.

ros2 run serial_bridge serial_bridge

2 — SLAM

Cartographer

Google Cartographer generates highly accurate 2D grid maps. Configuration inallbot/launch/include/allbot_lidar_standalone.lua.

ros2 launch allbot lidar_slam_carto.launch.py \
  use_sim_time:=false resolution:=0.05
Cartographer map

Gmapping

ros2 launch allbot lidar_slam_gmapping.launch.py use_sim_time:=false
Gmapping map

3 — Autonomous Navigation

Navigation via the ROS 2 Navigation Stack (Nav2). Two modes:

Mode A: AMCL on Saved Map

ros2 launch allbot navigate.launch.py \
  slam:=False map:=<path_to_map.yaml> autostart:=true

Mode B: Simultaneous SLAM + Navigation

ros2 launch allbot navigate.launch.py slam:=True autostart:=true
Navigation result

Search the site

Choose a destination, or type to search.