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

The corresponding code would be:

header.frame_id = frame;
header.stamp = ros::Time::now();

The corresponding code for filling a header would be:

header.frame_id = frame;
header.stamp = ros::Time::now();

The corresponding code for filling a header would be:

header.frame_id srv.header.frame_id = frame;
header.stamp srv.header.stamp = ros::Time::now();