ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

what do you mean by extract? Access the header field from a message? For example you can create a PoseStamped message from geometry_msgs with:

geometry_msgs::msg::PoseStamped pose;

Then you can access the stamp or frame_id with pose.header.stamp and pose.header.frame_id Note that (sequence )seq is removed from the header in ROS2