Skip to content

Software

micro-ROS

From github.com/micro-ROS/micro_ros_setup (opens in a new tab)

  • Middleware
  • Framework
  • Apache-2.0

A ROS 2 package that provides tools to cross-compile micro-ROS firmware for microcontroller platforms, running an RTOS such as FreeRTOS or Zephyr, and to build a micro-ROS agent.

Facts

GitHub stars
532read on 28 Nov 2026
Last update
19 Nov 2026Newest commit on kilted
Maintenance
Activea commit in the last 90 days
Difficulty
Advanced

Checked on GitHub on 28 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 565d3f1 (opens in a new tab), on 21 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Provides scripts to create, configure, build and flash micro-ROS firmware workspaces for supported embedded boards.
  • Supports FreeRTOS and Zephyr targets, including ST Nucleo boards, Olimex STM32-E407, ESP32 and Crazyflie 2.1.
  • Offers a generic static library build option and a Linux host target for testing and debugging apps natively.
  • Includes an Android AOSP target configured through NDK environment variables.
  • Can install and build a ready-to-use micro-ROS agent from the same package.
  • Links to separate standalone components for other platforms such as ESP-IDF, PlatformIO, Arduino and Raspberry Pi Pico SDK.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Active, last commit on 19 Nov 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 565d3f1

Robotheca read the repository at two versions: the summary at c4761b9 and the facts and the README at 565d3f1 (read on 28 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by @micro-ROS, at commit 565d3f1, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Picture: microros_logo.png

This ROS 2 package is the entry point for building micro-ROS apps for different embedded platforms.

Supported platforms

This package provides tools and utils to crosscompile micro-ROS with just the common ROS 2 tools for the following platforms.

Note that this package provides basic support only, intended in particular for ROS developers who are new to microcontrollers. Micro-ROS components for each platform are available and provide a deeper and more flexible integration with the platform-specific build systems.

RTOSPlatformVersionExampleRecommended Alternative
FreeRTOS (opens in a new tab)ST Nucleo F446RE (opens in a new tab) 1STM32CubeMX latestfreertos nucleo_f446remicro-ROS utils for STM32CubeMX and STM32CubeIDE (opens in a new tab)
FreeRTOS (opens in a new tab)ST Nucleo F446ZE (opens in a new tab) 1STM32CubeMX latestfreertos nucleo_f446zemicro-ROS utils for STM32CubeMX and STM32CubeIDE (opens in a new tab)
FreeRTOS (opens in a new tab)ST Nucleo F746ZG (opens in a new tab) 1STM32CubeMX latestfreertos nucleo_f746zgmicro-ROS utils for STM32CubeMX and STM32CubeIDE (opens in a new tab)
FreeRTOS (opens in a new tab)ST Nucleo F767ZI (opens in a new tab) 1STM32CubeMX latestfreertos nucleo_f767zimicro-ROS utils for STM32CubeMX and STM32CubeIDE (opens in a new tab)
FreeRTOS (opens in a new tab)Espressif ESP32 (opens in a new tab)v8.2.0freertos esp32micro-ROS component for ESP-IDF (opens in a new tab)
FreeRTOS (opens in a new tab)Crazyflie 2.1 (opens in a new tab)v10.2.1 - CF 2020.06freertos crazyflie21
Zephyr (opens in a new tab)Olimex STM32-E407 (opens in a new tab)v2.6.0zephyr olimex-stm32-e407micro-ROS module for Zephyr RTOS (opens in a new tab)
Zephyr (opens in a new tab)ST Nucleo F446RE (opens in a new tab) 1v2.6.0zephyr nucleo_f446remicro-ROS module for Zephyr RTOS (opens in a new tab)
Zephyr (opens in a new tab)ST B-L475E-IOT01A (opens in a new tab)v2.6.0zephyr discovery_l475_iot1micro-ROS module for Zephyr RTOS (opens in a new tab)
Zephyr (opens in a new tab)ST Nucleo H743ZI (opens in a new tab) 1v2.6.0zephyr nucleo_h743zimicro-ROS module for Zephyr RTOS (opens in a new tab)
Zephyr (opens in a new tab)Zephyr emulator (opens in a new tab)v2.6.0zephyr hostmicro-ROS module for Zephyr RTOS (opens in a new tab)
-Static library (.a) and headers (.h) 3-generate_lib
LinuxHost 2Ubuntu 18.04/20.04host
AndroidAOSP (opens in a new tab) 1Latestandroid generic

1 Community supported, may have lack of official support

2 Support for compiling apps in a native Linux host for testing and debugging

3 a valid CMake toolchain with custom crosscompilation definition is required

Standalone build system tools

micro_ros_setup provides access to standalone build system tools using the component command. After building this package just run:

ros2 run micro_ros_setup component --help

micro-ROS standalone module for specific platforms are:

Dependencies

This package targets the ROS 2 installation. ROS 2 supported distributions are:

ROS 2 DistroStateBranch
CrystalEOLcrystal
DashingEOLdashing
FoxyEOLfoxy
GalacticEOLgalactic
HumbleSupportedhumble
IronEOLiron
JazzySupportedjazzy
KiltedSupportedkilted
LyricalSupportedlyrical
RollingSupportedrolling

Some other prerequisites needed for building a firmware using this package are:

sudo apt install python3-rosdep

Building for Android needs Latest Android NDK (opens in a new tab) to be installed and the following environment variables to be set:

Quick start

Download here (opens in a new tab) the micro-ROS docker image that contains a pre-installed client and agent as well as some compiled examples.

Building

Create a ROS 2 workspace and build this package for a given ROS 2 distro (see table above):

source /opt/ros/$ROS_DISTRO/setup.bash

mkdir uros_ws && cd uros_ws

git clone -b $ROS_DISTRO https://github.com/micro-ROS/micro_ros_setup.git src/micro_ros_setup

rosdep update && rosdep install --from-paths src --ignore-src -y

colcon build

source install/local_setup.bash

Once the package is built, the firmware scripts are ready to run.

You can find tutorials for moving your first steps with micro-ROS on an RTOS in the micro-ROS webpage (opens in a new tab).

Creating micro-ROS firmware

Using the create_firmware_ws.sh [RTOS] [Platform] command, a firmware folder will be created with the required code for building a micro-ROS app. For example, for our reference platform, the invocation is:

# Creating a FreeRTOS + micro-ROS firmware workspace
ros2 run micro_ros_setup create_firmware_ws.sh freertos olimex-stm32-e407

# Creating a Zephyr + micro-ROS firmware workspace
ros2 run micro_ros_setup create_firmware_ws.sh zephyr olimex-stm32-e407
Configuring micro-ROS firmware

By running configure_firmware.sh command the installed firmware is configured and modified in a pre-build step. This command will show its usage if parameters are not provided:

ros2 run micro_ros_setup configure_firmware.sh [app name] [options]

By running this command without any argument the available demo applications and configurations will be shown.

Common options available at this configuration step are:

  • --transport or -t: udp, serial or any hardware specific transport label
  • --dev or -d: agent string descriptor in a serial-like transport (optional)
  • --ip or -i: agent IP in a network-like transport (optional)
  • --port or -p: agent port in a network-like transport (optional)

Please note that each RTOS has its configuration approach that you might use for further customization of these base configurations. Visit the micro-ROS webpage (opens in a new tab) for detailed information about RTOS configuration.

In summary, the supported configurations for transports are:

FreeRTOSZephyr
Olimex STM32-E407UART, NetworkUSB, UART
ST B-L475E-IOT01A-USB, UART, Network
Crazyflie 2.1Custom Radio Link-
Espressif ESP32UART, WiFI UDP-
ST Nucleo F446RE 1UARTUART
ST Nucleo F446ZE 1UART-
ST Nucleo H743ZI 1-UART
ST Nucleo F746ZG 1UARTUART
ST Nucleo F767ZI 1UART-

1 Community supported, may have lack of official support

Building micro-ROS firmware

By running build_firmware.sh the firmware is built:

ros2 run micro_ros_setup build_firmware.sh
Flashing micro-ROS firmware

In order to flash the target platform run flash_firmware.sh command. This step may need some platform-specific procedure to boot the platform in flashing mode:

ros2 run micro_ros_setup flash_firmware.sh

Building micro-ROS-Agent

Using this package is possible to install a ready to use micro-ROS-Agent:

ros2 run micro_ros_setup create_agent_ws.sh
ros2 run micro_ros_setup build_agent.sh
source install/local_setup.sh
ros2 run micro_ros_agent micro_ros_agent [parameters]

Contributing

As it is explained along this document, the firmware building system takes four steps: creating, configuring, building and flashing.

New combinations of platforms and RTOS are intended to be included in config folder. For example, the scripts for building a micro-ROS app for Crazyflie 2.1 using FreeRTOS is located in config/freertos/crazyflie21.

This folder contains up to four scripts:

  • create.sh: gets a variable named $FW_TARGETDIR and installs in this path all the dependencies and code required for the firmware.
  • configure.sh: modifies and configure parameters of the installed dependencies. This step is optional.
  • build.sh: builds the firmware and create a platform-specific linked binary.
  • flash.sh: flashes the binary in the target platform.

Some other required files inside the folder can be accessed from these scripts using the following paths:

# Files inside platform folder
$PREFIX/config/$RTOS/$PLATFORM/

# Files inside config folder
$PREFIX/config

Purpose of the Project

This software is not ready for production use. It has neither been developed nor tested for a specific use case. However, the license conditions of the applicable Open Source licenses allow you to adapt the software to your needs. Before using it in a safety relevant setting, make sure that the software fulfills your requirements and adjust it according to any applicable safety standards, e.g., ISO 26262.

License

This repository is open-sourced under the Apache-2.0 license. See the LICENSE (opens in a new tab) file for details.

For a list of other open-source components included in ROS 2 system_modes, see the file 3rd-party-licenses.txt (opens in a new tab).

Known Issues / Limitations

There are no known limitations.

If you find issues, please report them (opens in a new tab).

Papers

If you want to cite micro-ROS, please cite the following book chapter (PDF available at Springer Link (opens in a new tab)):

Kaiwalya Belsare, Antonio Cuadros Rodriguez, Pablo Garrido Sánchez, Juanjo Hierro, Tomasz Kołcon, Ralph Lange, Ingo Lütkebohle, Alexandre Malki, Jaime Martin Losa, Francisco Melendez, Maria Merlan Rodriguez, Arne Nordmann, Jan Staschulat, and Julian von Mendel: Micro-ROS. In: Anis Koubaa (ed.) Robot Operating System (ROS): The Complete Reference (Volume 7), Springer, pp. 3–55, 2023. (Online since 2 February 2023.)

@INBOOK{Belsare_et_al_2023_Micro-ROS,
  author = {Kaiwalya Belsare and Antonio Cuadros Rodriguez and Pablo Garrido S\'{a}nchez and Juanjo Hierro
            and Tomasz Ko\l{}con and Ralph Lange and Ingo L\"{u}tkebohle and Alexandre Malki
            and Jaime Martin Losa and Francisco Melendez and Maria Merlan Rodriguez and Arne Nordmann
            and Jan Staschulat and and Julian von Mendel},
  title = {Micro-ROS},
  editor = {Anis Koubaa},
  booktitle = {Robot Operating System (ROS): The Complete Reference (Volume 7)},
  year = {2023},
  publisher = {Springer},
  pages = {3--55},
  doi = {10.1007/978-3-031-09062-2_2}
}

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.