Revision: 7864 http://playerstage.svn.sourceforge.net/playerstage/?rev=7864&view=rev Author: robotos Date: 2009-06-20 03:09:09 +0000 (Sat, 20 Jun 2009)
Log Message: ----------- the state of the simulator can be retrieved Modified Paths: -------------- code/gazebo/trunk/player/SimulationInterface.cc Modified: code/gazebo/trunk/player/SimulationInterface.cc =================================================================== --- code/gazebo/trunk/player/SimulationInterface.cc 2009-06-19 22:53:59 UTC (rev 7863) +++ code/gazebo/trunk/player/SimulationInterface.cc 2009-06-20 03:09:09 UTC (rev 7864) @@ -215,6 +215,11 @@ { memcpy(req->value, &this->iface->data->realTime, sizeof(double)); } + else if (prop == "state") + { + memcpy(req->value, &this->iface->data->state, sizeof(int)); + } + } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit