Skip to main content

Crate hiroz_schema

Crate hiroz_schema 

Source
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§

FieldDescription
Field description in a type
FieldTypeDescription
Field type description with type ID
TypeDescription
Type description for a single message type
TypeDescriptionMsg
ROS2 TypeDescription message structure
TypeHash
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