SLAM & Navigation on Jetson
ROS1/ROS2 localization, mapping and autonomous path planning
Robotics
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 controlallbot / allbot_urdf / allbot_param: Core robot packages with launch files, URDF, and navigation parametersydlidar_ros2_driver: ROS 2 driver for the YDLidar sensorslam_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

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

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
