How can I find out when a re-played log stops?
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?
add a comment