ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
![]() | 1 | initial version |
from rclpy.clock import Clock
time_stamp = Clock().now()
to use it:
p = PoseStamped()
p.header.stamp = time_stamp.to_msg()