Skip to main content

Module message_info

Module message_info 

Source
Expand description

Message metadata for received messages

This module provides the MessageInfo type which contains metadata about received messages, matching the rclrs pattern.

§Example

node.create_subscription("/topic", |msg: &Int32, info: &MessageInfo| {
    println!("Received at {:?} from {:?}", info.source_timestamp(), info.publisher_gid());
});

Structs§

MessageInfo
Metadata about a received message
RawMessageInfo
Raw-subscription message info: MessageInfo metadata plus the sample’s wire-level attachment bytes, borrowed for the callback scope.

Constants§

PUBLISHER_GID_SIZE
Size of the publisher Global Identifier (GID)