Hi Solly,
I just put code back to player and gazebo that will now allow this via
the Simulation interface:
PlayerCc::PlayerClient robot("localhost");
PlayerCc::SimulationProxy sp(&robot,0);
double time;
sp.GetProperty("__GAZEBO","SIM_TIME",&time,sizeof(double));
sp.GetProperty("__GAZEBO","REAL_TIME",&time,sizeof(double));
sp.GetProperty("__GAZEBO","PAUSE_TIME",&time,sizeof(double));
The time is returned as "seconds.microseconds".
You'll need the CVS head from both player and gazebo. Let me know if
there are any problems.
-nate
On 4/16/07, Solly Brown <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Can anyone suggest the simplest way of obtaining the current simulation
> time via a player proxy?
>
> It would be nice to be able to read it from the SimulationProxy, but
> that doesn't seem to have been implemented yet. Any ideas?
>
> Thanks, Solly
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Playerstage-gazebo mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo