#ros2 #duration #ros #ros2-builtin-interfaces

ros2_builtin_interfaces

ROS2 Builtin Interfaces For Rust

2 releases

0.1.1 Apr 29, 2025
0.1.0 Apr 28, 2025

#91 in Robotics

Download history 162/week @ 2025-04-23 82/week @ 2025-04-30 19/week @ 2025-05-07

263 downloads per month

MIT/Apache

7KB

ROS2 Builtin Interfaces For Rust

Message definitions for types in the OMG IDL Platform Specific Model, for Rust.

Usage

Add the following to your Cargo.toml:

[dependencies]
ros2_builtin_interfaces = "0.1.0"

or using cargo:

cargo add ros2_builtin_interfaces

In your code:

use ros2_builtin_interfaces::msg::{Time, Duration};

let time = Time {
    sec: 0,
    nanosec: 0,
}

let duration = Duration {
    sec: 0,
    nanosec: 0,
}

Dependencies

~0.3–0.9MB
~20K SLoC