Atlas A2 — indoor autonomous robot on Jetson Orin Nano

An indoor autonomous robot running ROS2 Humble on a Jetson Orin Nano, with Mecanum wheels for omnidirectional motion. It integrates SLAM (slam_toolbox) and Nav2 to localize, navigate and avoid obstacles; returns to its charging dock by following a 16-channel magnetic line when the battery runs low; and detects objects in real time with YOLOv8. It is controlled through a dedicated REST API/WebSocket service layer (atlas_api) that serves both a PyQt5 desktop app (atlas_app) and a touchscreen app mounted on the robot (atlas_app_robot).
Source code for membersProject gallery



Demo videos
Real-world run — autonomous delivery AGV in a warehouse
Note: this is a research prototype used to validate the hardware/software architecture of an indoor autonomous mobile robot, not a finished commercial product.
How Atlas A2 differs from the two earlier projects
The Mecanum robot uses an ESP32 + Raspberry Pi 4 and the Diff Robot uses an Arduino/ESP32 + Raspberry Pi 4; both are prototypes for testing a basic ROS2 architecture. Atlas A2 is the next step up: it keeps Mecanum wheels (omnidirectional) but replaces the Raspberry Pi 4 with a Jetson Orin Nano, an embedded computer with a CUDA GPU that is powerful enough to run SLAM, Nav2 and a real-time object detection model (YOLOv8) at the same time, something a CPU-only Raspberry Pi 4 struggles to do smoothly. Atlas A2 also adds two capabilities the earlier robots lacked: returning to its charging dock on its own when the battery runs low, and a two-layer control system (a PyQt5 app on a PC for the operator + a touchscreen app on the robot itself) that talks over a REST API/WebSocket instead of relying on RViz2 just to watch.
System architecture
The system has three layers, following the same philosophy as the earlier projects, but all computation is concentrated on a single machine mounted on the robot:
- Hardware & sensors: a TSDA-C12D drives 4 TODE brushless motors over CAN bus (Supo Mecanum wheels), an RPlidar A2M12 scans 360°, a 16-channel magnetic sensor (Modbus RTU) is dedicated to docking, and an ESP32 monitors the bumpers and a hardware emergency stop button
- Jetson Orin Nano (ROS2 Humble): runs
slam_toolbox/AMCL, Nav2, theline_follow.pynode (docking) and YOLOv8 at the same time; this is the biggest difference from the two earlier Raspberry Pi 4 projects - PC: control & monitoring:
atlas_api(Flask) exposes a REST API on port 8080 and a WebSocket on port 8081, acting as the bridge between the ROS2 network (DDS) and theatlas_appcontrol app (PyQt5)
The touchscreen app on the robot (atlas_app_robot) does not talk to atlas_app on the PC directly; both are independent clients calling the same atlas_api, which keeps a single source of truth for the robot's navigation state.
In short: compared with the "compute on the robot, monitor through RViz2 on another machine" architecture of the earlier projects, Atlas A2 adds a dedicated service layer (
atlas_api) in the middle, so several clients (PC, touchscreen, and later a mobile app) can control one robot without knowing the ROS2 details underneath.
SLAM, AMCL and Nav2: the familiar foundation, plus a choice of controller
In principle Atlas A2 uses the same trio described in the Diff Robot project: slam_toolbox builds the map, AMCL localizes on the static map with a particle filter, and Nav2 coordinates planner_server → smoother_server → controller_server through a behavior tree (bt_navigator). The difference: the README states that Nav2 runs with a choice of DWB or MPPI controller for the path-following layer (controller_server):
| DWB (Dynamic Window Approach) | MPPI (Model Predictive Path Integral) | |
|---|---|---|
| How it works | Samples a set of feasible velocities (v, ω) within a "dynamic window", scores each sample with a cost function and picks the best | Samples hundreds of future trajectories with a motion model and iteratively optimizes them as a probability distribution (path integral) |
| Compute cost | Low, stable on weak hardware | Higher; needs a GPU or a many-core CPU to run smoothly, a good fit for the Jetson Orin Nano |
| Trajectory quality | Good in simple spaces, easy to tune | Smoother in narrow spaces with many moving obstacles |
On a Raspberry Pi 4 (the two earlier projects), DWB is practically mandatory because of the CPU limits. On the Jetson Orin Nano, MPPI becomes viable, trading more compute for smoother trajectories indoors (narrow corridors, many blind corners).
Auto-docking by following a magnetic line
This capability did not exist in either earlier project. When the battery drops below the configured threshold (Charge threshold, 20% by default in the app), the robot runs a nav → dock sequence on its own: Nav2 drives it close to the charging station using a saved waypoint (charging_pile), then hands over to a separate state machine that follows a magnetic line for precise alignment. GPS/AMCL is good enough to bring the robot near the station, but the few-centimetre accuracy needed for the two charging contacts to meet has to come from the 16-channel magnetic sensor mounted close to the floor under the robot.
- INIT: look for the magnetic line with the 16-channel sensor
- SEARCH: if the line is not found right away, sweep ±45° around the current position
- FOLLOW: follow the line, moving steadily towards the charging station
- STOPPED: running out of line (reaching the end of the track) means the robot is in the charging position; it publishes zero velocity for 5 seconds and exits, and
atlas_api_nodedetects that the child process has ended and sets/atlas/docked = true
When a new move command arrives while docked, the robot undocks itself: it backs straight out 30cm from the station before accepting a normal nav goal. This avoids Nav2 trying to plan a path right next to the charger, where the local costmap is often noisy because of the metal charging frame.
In short: docking is split into two clear phases: coarse navigation with Nav2 (accurate to tens of centimetres) and fine alignment by following a magnetic line (accurate to millimetres). This pattern is common in commercial service robots and cannot be solved with AMCL/Nav2 alone.
The control layer: REST API, WebSocket and two PyQt5 apps
The two earlier projects only had RViz2 for monitoring, with no way to control the robot remotely other than running ros2 topic pub by hand. Atlas A2 builds a full service layer:
| Endpoint | Method | Purpose |
|---|---|---|
/atlas/status | GET | Combined status (nav, battery, docked...) |
/atlas/nav/goal | POST | Send a nav goal {x, y, yaw} |
/atlas/nav/cancel | POST | Cancel navigation |
/atlas/nav/dock | POST | Start line-follow docking |
/atlas/nav/dock_stop | POST | Stop docking |
/atlas/nav/charge | POST | Full sequence: nav → dock |
/atlas/waypoints | GET/POST | Waypoint list |
/atlas/launch/status | GET | Status of the ROS2 nodes |
The WebSocket (ws://<PC_IP>:8081) broadcasts the status at 5Hz, fast enough for the apps to show the pose, laser scan and battery in near real time without constantly polling the REST API.
atlas_app (on the PC, for the operator) shows the map and lets you click to set a Nav Goal/Set Pose, measure distances, manage waypoints by drag and drop, draw virtual walls and special zones directly on the map, and use a "Build mode" to teleoperate with the keyboard while running SLAM. atlas_app_robot (on the touchscreen mounted on the robot) is a trimmed-down version: a list of waypoints as large buttons, route tracking and confirm buttons, optimized for touch on the spot instead of carrying a laptop next to the robot.
Object detection with YOLOv8
A USB UVC camera streams video through atlas_api, processed by YOLOv8 (the yolov8_msgs package defines dedicated messages for detection results) to detect objects in real time. The clearest use is helping avoid dynamic obstacles (people, moving objects), which Nav2's 2D LiDAR has a hard time classifying as "static or moving". This is the heaviest compute block and the reason for choosing a Jetson Orin Nano over the Raspberry Pi 4: running YOLO inference in real time is close to impossible on the Pi 4's CPU alone alongside SLAM/Nav2.
The actual hardware
From photos of the real robot: power comes from 2× CSC 12VDC 40Ah lithium-ion batteries, labelled "PowerBattery"/"LITHIUM-ION — ISO 9001:2015", with much more capacity than the 3S RC battery used on the Diff Robot, which suits the need to power a Jetson Orin Nano and YOLO continuously. On top of the frame is a blue control panel with a red emergency stop (E-Stop) button, a rotating warning light, a buzzer, the touchscreen (atlas_app_robot) and the charging port, all exposed so they are easy to use when standing next to the robot without opening a cover.
| Component | Model | Connection |
|---|---|---|
| Main computer | Jetson Orin Nano Developer Kit (Super) | — |
| Motor driver | TSDA-C12D | USB-CAN |
| Motors | TODE brushless × 4 | CAN bus |
| Wheels | Supo mecanum | — |
| LiDAR | RPlidar A2M12 | USB |
| Magnetic sensor | 16-channel analog | USB, Modbus RTU |
| Bumper sensor | ESP32 | USB |
| Battery (BMS) | 2× CSC lithium-ion 12VDC 40Ah | USB, Modbus RTU |
| Camera | USB UVC (v4l2) | — |
Hardware note from the README: use a USB hub with its own power supply (powered). An unpowered hub easily causes
ETIMEDOUTerrors when several USB devices (LiDAR, magnetic sensor, ESP32, battery) start at the same time during boot.
Common troubleshooting
The table below comes from the project's real operating notes; it reflects errors actually encountered during deployment, not a theoretical list:
| Symptom | Cause | Fix |
|---|---|---|
RPlidar publishes no /scan at boot | USB not yet stable when systemd starts the service | ExecStartPre=/bin/sleep 15 in the service |
USB device timeout (ETIMEDOUT -110) | USB hub without its own power supply | Use a powered USB hub |
| Robot app cannot connect to the API | API_HOST misconfigured | Fix setup/start_app_robot.sh |
| DDS cannot see topics across machines | AP client isolation enabled on the router | Disable it on the router, check that ROS_DOMAIN_ID matches |
line_follow does not follow the line | Wrong SENSOR_GATE/THRESHOLD_SUM | Adjust the parameters in line_follow.py |
| Nav2 does not accept goals | atlas_api not running or Nav2 not ready | Check ros2 topic list and the /navigate_to_pose action |
Summary and next steps
Summary
Atlas A2 is a more mature version of the research direction that started with the Mecanum robot and the Diff Robot: it keeps the core problem (SLAM + Nav2 on ROS2) but upgrades the compute hardware (Jetson Orin Nano) to unlock two capabilities the Raspberry Pi 4 architecture struggles to deliver together: real-time object detection with YOLO, and a REST/WebSocket service layer serving several control clients at once. Auto-docking by following a magnetic line solves exactly the problem AMCL/Nav2 were not designed for: millimetre-level alignment.
Next steps
- ArUco markers for docking: the app's
Dock methodalready has anarucooption (marked "future") next to the currentline_follow, aiming for docking without installing a physical magnetic line - Benchmark DWB vs MPPI: quantitatively measure trajectory smoothness and CPU/GPU load for both controllers on the same map, instead of only offering a configuration option
- Turn YOLO into active obstacle avoidance: detection currently stops at streaming and displaying
/inference_result, with no feedback into the costmap or navigation behavior yet - A mobile control channel:
atlas_app_robotshows the "many clients callingatlas_api" model works well, so a phone app could be added on the same architecture without changing the backend
Specifications
- Drive type
- 4 Mecanum wheels (Supo, omnidirectional)
- Onboard computer
- Jetson Orin Nano Developer Kit (Super)
- LiDAR sensor
- RPlidar A2M12
- Motors
- 4x TODE brushless — CAN bus
- Motor driver
- TSDA-C12D (USB-CAN)
- Bumper sensor
- ESP32 + hardware emergency stop button
- Docking sensor
- 16-channel magnetic sensor (Modbus RTU)
- Camera
- USB UVC (v4l2) + YOLOv8 object detection
- Power
- 2x CSC 12VDC 40Ah lithium-ion batteries
- Operating system
- Ubuntu 22.04 LTS
- Framework
- ROS2 Humble
- SLAM
- slam_toolbox
- Localization
- AMCL
- Navigation
- Nav2 — DWB / MPPI controller
- Control
- REST API + WebSocket (Flask) — PyQt5 app (PC) and touchscreen app (robot)