From: <he...@us...> - 2010-06-06 22:44:57
|
Revision: 212 http://simspark.svn.sourceforge.net/simspark/?rev=212&view=rev Author: hedayat Date: 2010-06-06 22:44:51 +0000 (Sun, 06 Jun 2010) Log Message: ----------- Monitor Logger now logs game state data in fixed intervals, so that such data will not be missed Some more release notes Modified Paths: -------------- trunk/spark/ChangeLog trunk/spark/NEWS trunk/spark/RELEASE trunk/spark/lib/oxygen/simulationserver/monitorlogger.cpp trunk/spark/lib/oxygen/simulationserver/monitorlogger.h Modified: trunk/spark/ChangeLog =================================================================== --- trunk/spark/ChangeLog 2010-06-06 22:39:29 UTC (rev 211) +++ trunk/spark/ChangeLog 2010-06-06 22:44:51 UTC (rev 212) @@ -1,3 +1,14 @@ +2010-06-07 Hedayat Vatankhah <he...@gr...> + + * NEWS: + * RELEASE: + - prepared for 0.2.1 release + + * lib/oxygen/simulationserver/monitorlogger.h: + * lib/oxygen/simulationserver/monitorlogger.cpp: + - request complete game information every 10 seconds so that it'll receive + new game state information + 2010-06-06 Hedayat Vatankhah <he...@gr...> * lib/oxygen/monitorserver/monitorserver.h: Modified: trunk/spark/NEWS =================================================================== --- trunk/spark/NEWS 2010-06-06 22:39:29 UTC (rev 211) +++ trunk/spark/NEWS 2010-06-06 22:44:51 UTC (rev 212) @@ -1,3 +1,18 @@ +[0.2.1] +This release of simspark is prepared for RoboCup 2010 competitions in Singapore. +In this release you can find some bug and compilation fixes, improved Windows +support and some new features such as the potential of using different +physical simulation engines. + +* New features: + - The core physics system does no longer depend on ODE (Thanks to Andreas). + ODE implementation is now provided as a plugin. + +* Fixes: + - Compilation fixes on newer compilers (VS 2010) + - Fixed some bugs on 64 bit systems and in multi-threaded mode. It is (hopefully) + possible to run multi-threaded games while logging is enabled + [0.2] In this release you can find some bug and compilation fixes, improved Windows support and some new features including a new sensor and features to facilitate Modified: trunk/spark/RELEASE =================================================================== --- trunk/spark/RELEASE 2010-06-06 22:39:29 UTC (rev 211) +++ trunk/spark/RELEASE 2010-06-06 22:44:51 UTC (rev 212) @@ -1,5 +1,6 @@ RELEASE News of simspark-0.2.1 +This release of simspark is prepared for RoboCup 2010 competitions in Singapore. In this release you can find some bug and compilation fixes, improved Windows support and some new features such as the potential of using different physical simulation engines. @@ -10,7 +11,8 @@ * Fixes: - Compilation fixes on newer compilers (VS 2010) - - Fixed some bugs on 64 bit systems and in multi-threaded mode + - Fixed some bugs on 64 bit systems and in multi-threaded mode. It is (hopefully) + possible to run multi-threaded games while logging is enabled You can get the package on the Simspark page on SourceForge at http://sourceforge.net/projects/simspark/ Modified: trunk/spark/lib/oxygen/simulationserver/monitorlogger.cpp =================================================================== --- trunk/spark/lib/oxygen/simulationserver/monitorlogger.cpp 2010-06-06 22:39:29 UTC (rev 211) +++ trunk/spark/lib/oxygen/simulationserver/monitorlogger.cpp 2010-06-06 22:44:51 UTC (rev 212) @@ -29,7 +29,8 @@ using namespace boost; using namespace std; -MonitorLogger::MonitorLogger() : SimControlNode(), mFullStateLogged(0) +MonitorLogger::MonitorLogger() : SimControlNode(), mFullStateLogged(0), + mFullStateLoggedTime(0) { } @@ -70,9 +71,12 @@ string info; boost::shared_ptr<Scene> scene = GetActiveScene(); - if (scene.get() != 0 - && scene->GetModifiedNum() > mFullStateLogged ) + // The logger might miss some information as it runs at a lower rate + if (mTime - mFullStateLoggedTime > 3.0 || + (scene.get() != 0 && scene->GetModifiedNum() > mFullStateLogged) + ) { + mFullStateLoggedTime = mTime; mFullStateLogged = scene->GetModifiedNum(); info = mMonitorServer->GetMonitorHeaderInfo(); } Modified: trunk/spark/lib/oxygen/simulationserver/monitorlogger.h =================================================================== --- trunk/spark/lib/oxygen/simulationserver/monitorlogger.h 2010-06-06 22:39:29 UTC (rev 211) +++ trunk/spark/lib/oxygen/simulationserver/monitorlogger.h 2010-06-06 22:44:51 UTC (rev 212) @@ -61,6 +61,9 @@ /** number of full state logged */ int mFullStateLogged; + + /** the time of the last full state logging */ + float mFullStateLoggedTime; }; DECLARE_CLASS(MonitorLogger); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |