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

ros2_builtin_interfaces

ROS2 Builtin Interfaces For Rust

2 releases

new 0.1.1 Apr 29, 2025
0.1.0 Apr 28, 2025

#110 in Robotics

41 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