Skip to content
NEWSLabNTUPublic

About

no_std ROS 2 client for microcontrollers and RTOS (Zephyr, FreeRTOS, NuttX, ThreadX) and Linux. Rust-first with C/C++ APIs; pluggable Zenoh / XRCE-DDS / Cyclone DDS backends; interoperates with standard ROS 2.

Topics

Resources

Contributing

Security policy

Stars

18 stars

Watchers

1 watching

Forks

Latest commit

 

History

18,205 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nano-ros

CI Book ROS 2 License

ROS 2 nodes on microcontrollers and real-time operating systems. You write a node in Rust, C or C++, nano-ros builds it into firmware for your board, and it joins your ROS 2 graph like any other node: ros2 topic echo on your computer sees what the board publishes.

It runs with no operating system or on Zephyr, FreeRTOS, NuttX and ThreadX, talks over Zenoh, Cyclone DDS or XRCE-DDS, and sizes its node, topic and message pools when you build. Whether an image needs a heap depends on the middleware you pick.

Who it is for

  • Teaching: robotics and embedded courses that need the same result on every seat, with no hardware.
  • Field work: engineers who get a board and need its data in ROS 2 the same day.
  • Products: teams who need reproducible images, offline builds and every board fact on a page.

Choose your path gives each a route through the book.

Try it on your machine

On Ubuntu 22.04 with ROS 2 Humble installed, a C++ talker runs as a program on your machine, no board or emulator needed:

curl -fsSL https://raw.githubusercontent.com/NEWSLabNTU/nano-ros/main/scripts/install.sh | sh
export PATH="$HOME/.nros/bin:$PATH"
sudo apt-get install -y ros-humble-rmw-cyclonedds-cpp
nros setup linux --rmw cyclonedds

source /opt/ros/humble/setup.bash
nros new host_ws --board linux --template talker --lang cpp --rmw cyclonedds
cd host_ws
nros run host_node --expect "Publishing: 'Hello World: 1'"

Then put the same talker on a board: every starter runs in an emulator or on your host first.

What runs where

Each row is a starter in the book, with the languages its tabs cover today:

Board Runs RMW Rust C C++
Nucleo-F767ZI Boots, manual Zenoh yes yes yes
mps2-an385 in QEMU (bare-metal) Verified in emulator Zenoh yes yes yes
mps2-an385 in QEMU (FreeRTOS) Verified in emulator Zenoh yes yes yes
mps2-an385 in QEMU (Zephyr) Verified in emulator Zenoh yes yes yes
NuttX in QEMU (Arm) Verified in emulator Zenoh yes yes yes
NuttX in QEMU (RISC-V) Verified in emulator Zenoh yes yes yes
ThreadX in QEMU (RISC-V 64) Verified in emulator Zenoh yes yes yes
Linux host Verified on host Cyclone DDS yes yes yes
Zephyr native_sim Verified on host Zenoh yes yes yes
ThreadX Linux simulator Verified on host Zenoh yes yes yes
FreeRTOS POSIX Verified on host Cyclone DDS, Zenoh yes yes yes

yes: the starter's tab for that language is replayed in CI from a clean install and passes. not yet: the tab is in the book and its replay waits on a fix. —: the starter has no tab for that language.

Supported Boards lists every board the release knows, and Board support levels says what each level means. Both are generated from the same registry.

Measured

One image, measured on 2026-11-09 at commit a9dc35a5e1: the mps2-an385 bare-metal starter's Rust talker over Zenoh, built with nros build -- --release and measured with just mem-report and arm-none-eabi-size.

Bytes
Flash: code and constants (text) 397,852
RAM: everything but the heap 40,128
RAM: the heap Zenoh's session uses, sized by the board 132,816

The book's static memory and pools page explains where each pool comes from, and just mem-report <elf> prints the same breakdown for your own image.

Learn more

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option (SPDX MIT OR Apache-2.0).

A few crates derived from Apache-2.0 ROS 2 sources are Apache-2.0 only — rcl-interfaces and lifecycle-msgs (generated from ROS 2 message definitions) and nros-c (rclc-compatible C API). Each crate's Cargo.toml declares its own SPDX license.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

no_std ROS 2 client for microcontrollers and RTOS (Zephyr, FreeRTOS, NuttX, ThreadX) and Linux. Rust-first with C/C++ APIs; pluggable Zenoh / XRCE-DDS / Cyclone DDS backends; interoperates with standard ROS 2.

Topics

Resources

Contributing

Security policy

Stars

18 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages