Header Assignment
R2026bUpdate fields of ROS message header
Libraries:
ROS Toolbox /
ROS
Description
The Header Assignment block updates the values in the header field of a ROS
message. When a ROS message contains a header field of type
std_msgs/Header, you can use this block to update the
frame_id and stamp values in its header field. During
each sample hit, the block updates the frame_id and
stamp fields in the header. The accuracy of the timestamp depends on the
step size of the solver. Smaller step sizes result in more accurate timestamps.
Examples
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"robotlib/Header Assignment"
Example: add_block("robotlib/Header Assignment","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2021a


