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

Use to_msg() to convert from rclpy.time.Time to builtin_interfaces.msg.Time

  msg.header.stamp = node.get_clock().now().to_msg()

Link to Time.to_msg() in rclpy/time.py