ros2-types
ROS2 type support: traits, type descriptions, and RIHS01 hash calculation.
This crate provides:
- Core traits for ROS2 messages, services, and actions (
TypeSupport,ServiceMsg,ActionMsg, etc.) TypeDescriptiontrait for generating type descriptions- RIHS01 hash calculation that matches the rosidl implementation
- Derive macro support for automatic implementation
Usage
use ;
// Implement TypeDescription trait manually or use derive macro
// Get the type hash
let hash = compute_hash;
println!; // RIHS01_<sha256_hash>
RIHS01 Algorithm
RIHS01 (ROS Interface Hashing Standard, version 1) uses SHA256 to hash a canonical JSON representation of the type description.