#ros2 #robotics

safe_drive_msg

A transpiler from ROS2's message types to Rust's types

1 unstable release

Uses new Rust 2021

0.1.3 Nov 7, 2022

#8 in Robotics

27 downloads per month

Custom license

87KB
2.5K SLoC

Message Transpiler for safe_drive

A transpiler from ROS2's message types to Rust's types. This library is used by cargo-ament-build internally.

use safe_drive_msg;
use std::path::Path;

let dependencies = ["std_msgs", "std_srvs"];
safe_drive_msg::depends(&Path::new("/tmp/output_dir"), &dependencies, safe_drive_msg::SafeDrive::Version("0.1"));

Limitation

This does not support C/C++ like preprocessor.


lib.rs:

Transpiler from ROS2's message types to Rust's types.

See https://github.com/ament/ament_cmake/blob/master/ament_cmake_core/doc/resource_index.md

Dependencies

~3MB
~60K SLoC