how to get the starting simulation time from gazebo ?
Dear, I have a controller for a simple robot in gazebo. In my controller, I need to get the starting simulated time because there is lag between starting gazebo simulation and starting my controller. In my controller, I used this line (Init_time) to get the starting simulation time, but it always got out 0.
Init_time = ros::Time::now().toSec();
double time = odom->header.stamp.toSec();