roscpp wait for 1 second code example
Example: ros duration to seconds
double secs =ros::Time::now().toSec();
ros::Duration d(0.5);
secs = d.toSec();
double secs =ros::Time::now().toSec();
ros::Duration d(0.5);
secs = d.toSec();