ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

This appears to work:

ros::Time start;
ros::Time end;

ros::Time mid = start + (end - start) *0.5;

You can only add a Duration to a time (and subtracting one Time from another gives a Duration).