Skip to content

ROS2 Standard Messages

ColorRGBA

std_msgs.ColorRGBARGBA float32 colour. CdrFixed (16 bytes).

std_msgs.Headerstamp + frame_id. Buffer-backed.

Stored as an owned CDR buffer; field accessors do O(1) reads at known offsets. Decoding via :meth:from_cdr parses the buffer in a single pass and stamps a 1-element offset table.

cdr_size property

cdr_size: int

Size of the underlying CDR buffer in bytes.

to_bytes

to_bytes() -> bytes

Return the full CDR buffer as bytes (one copy).