How can I find out when a re-played log stops?

asked 2014-09-23 07:03:50 -0600

AndreiHaidu gravatar image

updated 2014-09-24 03:20:10 -0600

Hi,

I am re-running some saved gazebo logs with a plugin, and when the log is finished the simulation just stops(pauses) doesn't end the process.

How can I find out from the code that the simulation has stopped?

Thanks, Andrei

!!!UPDATE

I tried with:

//check if the simulation has terminated
std::string sdfString;
if(!util::LogPlay::Instance()->Step(sdfString))
{
    std::cout << "TF Simulation done!!"<< std::endl;
}

however this steps once in the simulation. Should I create an enhancement request for a method/attribute which returns/has the state (e.g. running, paused, finished) of the current logging play?

edit retag flag offensive close merge delete