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

sec and nsec are public members of the ros::Time class:

  struct Time {
    uint32_t sec;
    uint32_t nsec;
  };

  Time t2;
  ros::Time t1;
  t2.sec = t1.sec;
  t2.nsec = t1.nsec;