Software
ros2_rust (rclrs)
By ros2-rust, from github.com/ros2-rust/ros2_rust (opens in a new tab)
- Middleware
- Library
- Apache-2.0
A set of projects, centered on the rclrs client library, that lets developers write ROS 2 applications in Rust.
Facts
- GitHub stars
- 1,556read on 22 Nov 2026
- Last update
- 15 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Advanced
Checked on GitHub on 22 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 c9b7d93 (opens in a new tab), on 22 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Provides a Rust client library (rclrs) covering publishers, subscriptions, services, clients, and actions, with async variants.
- Generates Rust code from ROS message types, and supports loaned messages and dynamic message handling.
- Offers timers, parameters with parameter services, ROS-compliant logging with rosout support, and graph queries.
- Includes guard conditions, wait sets, clock and time APIs, and worker and executor patterns for coordinating nodes.
- Is still rapidly evolving, so it makes no stability guarantees for now.
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 15 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
- Repository on GitHubgithub.com/ros2-rust/ros2_rust (opens in a new tab)
- The version Robotheca readc9b7d93 (opens in a new tab)
- Latest releasev0.8.0 (23 Sept 2026)
Robotheca read the repository at two versions: the summary at 3613934 and the facts and the README at c9b7d93 (read on 22 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 ros2-rust, at commit c9b7d93, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
ROS 2 for Rust
(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)
Introduction
This is a set of projects (the rclrs client library, code generator, examples, and more) that
enables developers to write ROS 2 applications in Rust.
Features and Limitations
The current set of features includes:
- Message generation with support for all ROS message types
- Publishers and subscriptions (including async variants)
- Loaned messages (zero-copy messaging)
- Dynamic message handling (runtime message introspection and manipulation)
- Tunable QoS settings
- Clients and services (including async variants)
- Actions (action servers and clients with async support)
- Timers (repeating, one-shot, and inert timers)
- Parameters (mandatory, optional, and read-only with parameter services)
- Logging with ROS-compliant logging utilities and rosout support
- Graph queries (topic/node discovery, endpoint information)
- Guard conditions and wait sets
- Clock and time APIs (including time sources)
- Worker pattern for managing shared state across callbacks
- Executor pattern for coordinating node execution
Some things are still missing however, see the issue list (opens in a new tab) for an overview. You are very welcome to contribute (opens in a new tab)!
Since the client library is still rapidly evolving, there are no stability guarantees for the moment.
Installation
Prerequisites
First, install Rust and the required system dependencies:
# Install Rust (see https://rustup.rs/)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Install required system packages
sudo apt install -y git libclang-dev python3-pip python3-vcstool
# Install colcon plugins for Rust
pip install --break-system-packages colcon-cargo colcon-ros-cargo
All ROS Distributions
rclrs is released on crates.io (opens in a new tab) and you can add it to your project directly:
[dependencies]
rclrs = "0.8"
To build and run the examples, install the example_interfaces and test_msgs ROS packages, then clone the examples repository into a workspace:
sudo apt install -y ros-$ROS_DISTRO-example-interfaces ros-$ROS_DISTRO-test-msgs
mkdir -p workspace/src && cd workspace
git clone https://github.com/ros2-rust/examples.git src/examples
Build the workspace:
. /opt/ros/$ROS_DISTRO/setup.sh # Or source your ROS 2 installation
colcon build
Running the examples
After building, source your workspace and run the examples:
# In a new terminal (or tmux window)
. ./install/setup.sh
ros2 run examples_rclrs_minimal_pub_sub minimal_publisher
# In a new terminal (or tmux window)
. ./install/setup.sh
ros2 run examples_rclrs_minimal_pub_sub minimal_subscriber
Or:
# In a new terminal (or tmux window)
. ./install/setup.sh
ros2 launch examples_rclrs_minimal_pub_sub minimal_pub_sub.launch.xml
For detailed building instructions and additional setup options, see the in-depth guide (opens in a new tab).
AI Policy
Generative tools are allowed in producing contributions to its projects, with some qualifications:
- Any contribution may consist, in whole or in part, of the output of one or more generative tools.
- Any use of generative tools in a contribution must be disclosed at the time of making the contribution.
- The disclosure must be recorded in a way that ensures it has the same or greater lifetime as the contribution itself.
For source code contributions, you should add a disclosure statement in the commit message for all commits where some portion of the source code was generated.
Assisted-by: AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]
Provide a similar disclosure statement in the PR description.
See the projects AI Policy (opens in a new tab) for more details.
Further Documentation
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.