Expand description
ROS 2 Type Description Schema
This crate provides the canonical schema types for ROS 2 type descriptions, used by hiroz for:
- Type hash (RIHS01) computation
- Type description service wire format
- Dynamic message schema conversion
- Python binding type ID mapping
The TypeDescription type matches the ROS 2 type_description_interfaces exactly,
making it the single source of truth for type information after parsing.
Structs§
- Field
Description - Field description in a type
- Field
Type Description - Field type description with type ID
- Type
Description - Type description for a single message type
- Type
Description Msg - ROS2 TypeDescription message structure
- Type
Hash - RIHS01 type hash (32 bytes)
- TypeId
- Type ID constants matching ROS 2 RIHS01 specification
Functions§
- calculate_
hash - Calculate RIHS01 hash for a TypeDescriptionMsg
- to_
hash_ version - Convert TypeDescriptionMsg to hash-computation version (excludes default_value)
- to_
ros2_ json - Serialize to ROS2-compatible JSON format