#[derive(RosMessage)]
{
// Attributes available to this derive:
#[ros]
}
Expand description
Derive macro for ROS message types
Generates Serialize, Deserialize, and RosMessage implementations.
§Attributes
#[ros(type_name = "...")]- Full ROS type name (required)#[ros(hash = "...")]- RIHS type hash (required)
§Example
ⓘ
use nros_macros::RosMessage;
#[derive(RosMessage)]
#[ros(type_name = "std_msgs::msg::dds_::String_")]
#[ros(hash = "abc123...")]
pub struct StringMsg {
pub data: heapless::String<256>,
}