Atlas Robotics
Linux / Ubuntu / JetsonIntermediate

Jetson Orin Nano: setup and optimization for ROS2 + AI

Atlasbot · 20/8/2026 · 11 min read

Jetson Orin Nano: setup and optimization for ROS2 + AI
Jetson Orin Nano installation process: flash JetPack, install ROS2, adjust power mode

Jetson Orin Nano Developer Kit is currently the most popular specific model for AMR that needs to run vision AI in parallel with SLAM/Nav2 — used in the Atlas A2 project in section Projects of this page. This article goes from installation to the most easily overlooked step: adjust power mode — without this step, the chip runs below maximum performance even with powerful hardware.

Main hardware specifications

ComponentParameters
CPU6-core Arm Cortex-A78AE 64-bit
GPUNVIDIA Ampere, 1024 CUDA cores + 32 Tensor cores
RAM8GB LPDDR5
ArchivemicroSD slot (default) + NVMe SSD support via M.2 Key M slot
Connect4× USB 3.2 Gen2, Gigabit Ethernet, 2× MIPI CSI-2 (camera)
SourcesDC jack 5V⎓4A or USB-C, power consumption 7–25W depending on mode

Step 1: Flash JetPack

The Developer Kit has 2 ways to boot: from a microSD card (simple, enough to get started) or from a SSD NVMe via M.2 slot (significantly faster, recommended if running ROS2 + continuous log/bag file recording — low write speed SD cards can easily become a bottleneck).

# The simplest way: burn the official JetPack image to a microSD card
# using balenaEtcher or NVIDIA SDK Manager (running on Ubuntu host machine)

After flashing and booting for the first time, Jetson runs a version of Ubuntu (based on NVIDIA's L4T — Linux for Tegra — version) that already has GPU drivers, no need to install separate drivers like on a regular PC.

Step 2: Install ROS2 Humble

After updating the system, install ROS2 according to the standard procedure for Ubuntu 22.04 — no different from installing on a regular computer, because JetPack is based on Ubuntu 22.04 (matching the Ubuntu-ROS2 pair mentioned in the Ubuntu article):

$ sudo apt update && sudo apt upgrade -y
$ sudo apt install ros-humble-desktop
$ echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc

Step 3: Adjust power mode — an important step that is often overlooked

Jetson Orin Nano has multiple power modes (power limited mode) — the default is usually not the highest performance mode, because the highest mode consumes more power/heat. If the robot runs vision AI without checking this step, the actual performance may be much lower than the chip's maximum specifications.

# View current power mode
$ sudo nvpmodel -q
NV Power Mode: 15W

# Switch to maximum performance mode
$ sudo nvpmodel -m 0

# Push CPU/GPU clock to maximum (usually used with highest power mode)
$ sudo jetson_clocks

nvpmodel -m 0 usually corresponds to the highest power/performance mode (specific mode numbers may vary by JetPack version — run nvpmodel -q --verbose to see the full list of available modes on the machine in use).

Technical details

Formulas

Compare the power supply rating with the maximum power the board can consume — skipping this step is the direct cause of the "auto-restart when running heavy load" error mentioned in the spec sheet:

Power supply rating (W) = Voltage (V) × Maximum current (A)

VD: adapter 5V⎓4A
Power = 5V × 4A = 20W

Compared to the board consumption of 7-25W depending on the mode (stated in the parameter table) — if adjusted
nvpmodel to the highest mode AND plug in more USB devices (LiDAR, cameras) at the same time
At times, the actual total power may exceed the adapter's 20W — the power supply is not enough current
causes a voltage drop, leading to a sudden restart.

Parameters

Storage speed comparison — reasons why switching to NVMe SSD is recommended for continuous logging/bag recording (mentioned in the Common Errors section):

Storage typeReference write speed
microSD card (universal type)~20-90 MB/s
SSD NVMe qua khe M.2Can reach hundreds of MB/s to several GB/s depending on the model

Practical applications

In the multi-board architecture of the Atlas A2 project, Jetson Orin Nano takes on the role of "AI + navigation layer" (running Nav2, YOLO detects obstacles) as mentioned in previous microcontroller and ROS2 articles — while real-time safety tasks (emergency stop button, collision sensor) are still assigned to a separate MCU (ESP32/STM32) instead of running on Jetson. Here's why: Jetson runs full Ubuntu, which can temporarily freeze/slow down during heavy AI load spikes — separating the safety layer from the AI ​​layer ensures emergency response never depends on whether the GPU is idle or not.

Practical example: testing a system for AI readiness

$ sudo tegrastats
RAM 2841/7620MB CPU [15%,10%,8%,5%,3%,2%] GR3D_FREQ 0%
# GR3D_FREQ = 0% means the GPU is idle — test the AI ​​model and review
# This value confirms the GPU is actually used, not just the CPU

$ python3 -c "import torch; print(torch.cuda.is_available())"
True

Running tegrastats in parallel while testing the YOLO/AI model is the fastest way to confirm whether the task is actually running on the GPU or silently falling to the CPU (usually due to installing the wrong PyTorch build for Jetson, see NVIDIA Jetson article).

Common mistakes

  • Performance is lower than advertised specifications even though the Orin Nano board is correct — forgot to adjust nvpmodel/jetson_clocks, see Step 3 again.
  • Robot restarts automatically when running heavy AI load — power supply does not have enough current (minimum requirement 5V⎓4A), especially when using cheap USB-C adapters that do not meet the Power Delivery standard with sufficient power.
  • Lagging, slow logging/rosbag recording — low write speed microSD cards become a bottleneck when ROS2 records data continuously (eg: recording all LiDAR + camera data) — consider switching to NVMe SSD via M.2 slot if this situation occurs.
  • torch.cuda.is_available() returns False — mistakenly installed the standard PyTorch build from pip install torch (built for x86, cannot run GPU on Jetson's ARM architecture) instead of the JetPack specific build.

Conclusion

Jetson Orin Nano is powerful enough for most AMR problems that require vision AI, but only achieves its true performance when the power mode is adjusted properly - a step that is easy to skip because the system still "works" in default mode, just much slower than its actual capabilities. This is also the last article in the Linux / Ubuntu / Jetson category — combined with the previous articles (Terminal, SSH, USB/Serial, udev rules, Docker) is enough operating system foundation to start learning ROS2 firmly.

Get new articles and lessons by email

When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.

Unsubscribe any time with the link in each email. See our Privacy policy.

Jetson Orin Nano: setup and optimization for ROS2 + AI — Atlas Robotics