Skip to main content

Module typehash

Module typehash 

Source
Expand description

Message type identity: the DDS type name and the RIHS01 type hash.

Two peers only exchange a message if they agree on its type. ROS 2 pins that agreement two ways: a DDS type name derived from the interface (std_msgs/msg/String becomes std_msgs::msg::dds_::String_), and a structural type hash (REP-2011’s RIHS01, a SHA-256 over the type’s description, written RIHS01_ followed by 64 hex digits). This module derives the type name and parses and formats the hash. Computing the hash from a type description is part of the live bridge, where it is checked against the value rosidl emits.

Structs§

TypeHash
A parsed ROS 2 type hash in the RIHS01 scheme (REP-2011).

Functions§

dds_type_name
Derives the DDS type name from a ROS 2 interface type.