From: <he...@us...> - 2011-03-25 22:43:21
|
Revision: 263 http://simspark.svn.sourceforge.net/simspark/?rev=263&view=rev Author: hedayat Date: 2011-03-25 22:43:15 +0000 (Fri, 25 Mar 2011) Log Message: ----------- * updated RELEASE and NEWS for 0.2.2 release * A small cleanup: SimulationServer::AdvanceTime() is now protected and InputControl don't try to advance time be default Modified Paths: -------------- trunk/spark/ChangeLog trunk/spark/NEWS trunk/spark/RELEASE trunk/spark/lib/kerosin/inputserver/inputcontrol.cpp trunk/spark/lib/oxygen/simulationserver/simulationserver.h trunk/spark/spark/spark.rb Modified: trunk/spark/ChangeLog =================================================================== --- trunk/spark/ChangeLog 2011-03-25 22:36:19 UTC (rev 262) +++ trunk/spark/ChangeLog 2011-03-25 22:43:15 UTC (rev 263) @@ -1,3 +1,22 @@ +2011-03-26 Hedayat Vatankhah <hed...@gm...> + + * NEWS: + * RELEASE: + - updated for 0.2.2 release + + * lib/kerosin/inputserver/inputcontrol.cpp (InputControl::InputControl): + - turn off advancing the time by InputControl(since it no longer works in + the new timing system). In fact, all timing code should be removed from + InputControl/InputSystem/InputServer and InputSystemSDL. + + * spark/spark.rb: + - removed the code to turn off InputControl's timing functionality as it + is off be default now + + * lib/oxygen/simulationserver/simulationserver.h (SimulationServer): + - made AdvanceTime() method protected: it is not expected to be called + externally anymore + 2011-03-25 Hedayat Vatankhah <hed...@gm...> * lib/oxygen/simulationserver/simulationserver.h (SimulationServer): Modified: trunk/spark/NEWS =================================================================== --- trunk/spark/NEWS 2011-03-25 22:36:19 UTC (rev 262) +++ trunk/spark/NEWS 2011-03-25 22:43:15 UTC (rev 263) @@ -1,3 +1,21 @@ +[0.2.2] +This release features many small enhancements which will benefit users. +It contains many bug fixes and performance improvements, in addition to +fixing some compilation issues. The behavior of ACC perceptor has been slightly +changed, and the multi-threaded mode should work without any known bugs. +Support for the camera sensor is improved too. More details are as follows: + +- ACC sensor provides raw data without any pre-processing + -- You can apply the following filter to 'RawACC' value received from the + simulator to get ACC value as what you'd receive in previous versions: + ACC = 0.9 * ACC + (0.1) * RawACC +- Using base64 encoding for camera perceptor +- Fixed bugs in multi-threaded mode. +- Compilation fixes +- HingePerceptor can report torque +- Better Performance +- New timing system result in more cleaner code and prevent wasting CPU time + [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 Modified: trunk/spark/RELEASE =================================================================== --- trunk/spark/RELEASE 2011-03-25 22:36:19 UTC (rev 262) +++ trunk/spark/RELEASE 2011-03-25 22:43:15 UTC (rev 263) @@ -7,11 +7,15 @@ Support for the camera sensor is improved too. More details are as follows: - ACC sensor provides raw data without any pre-processing + -- You can apply the following filter to 'RawACC' value received from the + simulator to get ACC value as what you'd receive in previous versions: + ACC = 0.9 * ACC + (0.1) * RawACC - Using base64 encoding for camera perceptor - Fixed bugs in multi-threaded mode. - Compilation fixes - HingePerceptor can report torque - Better Performance +- New timing system result in more cleaner code and prevent wasting CPU time You can get the package on the Simspark page on SourceForge at http://sourceforge.net/projects/simspark/ Modified: trunk/spark/lib/kerosin/inputserver/inputcontrol.cpp =================================================================== --- trunk/spark/lib/kerosin/inputserver/inputcontrol.cpp 2011-03-25 22:36:19 UTC (rev 262) +++ trunk/spark/lib/kerosin/inputserver/inputcontrol.cpp 2011-03-25 22:43:15 UTC (rev 263) @@ -35,7 +35,7 @@ mDeltaTime = 0; mHorSens = 0.3f; mVertSens = 0.3f; - mAdvanceTime = true; + mAdvanceTime = false; mMouseLook = false; } @@ -229,11 +229,12 @@ } } - if (mAdvanceTime) - { - // pass the delta time on to the SimulationServer - GetSimulationServer()->AdvanceTime(mDeltaTime); - } + // No longer works +// if (mAdvanceTime) +// { +// // pass the delta time on to the SimulationServer +// GetSimulationServer()->AdvanceTime(mDeltaTime); +// } } float Modified: trunk/spark/lib/oxygen/simulationserver/simulationserver.h =================================================================== --- trunk/spark/lib/oxygen/simulationserver/simulationserver.h 2011-03-25 22:36:19 UTC (rev 262) +++ trunk/spark/lib/oxygen/simulationserver/simulationserver.h 2011-03-25 22:43:15 UTC (rev 263) @@ -58,7 +58,7 @@ public: SimulationServer(); - ~SimulationServer(); + virtual ~SimulationServer(); /** exits the simulation on the next simulation step */ static void Quit(); @@ -78,11 +78,6 @@ /** returns the simulation time step */ virtual float GetSimStep(); - /** increases the accumulated time since the last simulation step, - but does not step the simulation - */ - virtual void AdvanceTime(float deltaTime); - /** returns the accumulated time since the last simulation step */ virtual float GetSumDeltaTime(); @@ -158,6 +153,11 @@ protected: virtual void OnLink(); + /** increases the accumulated time since the last simulation step, + but does not step the simulation + */ + virtual void AdvanceTime(float deltaTime); + /** advances the simulation mSumDeltaTime seconds. If mSimStep is nonzero this is done in discrete steps */ virtual void Step(); Modified: trunk/spark/spark/spark.rb =================================================================== --- trunk/spark/spark/spark.rb 2011-03-25 22:36:19 UTC (rev 262) +++ trunk/spark/spark/spark.rb 2011-03-25 22:43:15 UTC (rev 263) @@ -413,12 +413,6 @@ # add the input control node simulationServer.initControlNode('kerosin/InputControl','InputControl') end - - # set timing mode (real time vs simulation time) - inputControl = get($serverPath+'simulation/InputControl') - if (inputControl != nil) - inputControl.setAdvanceTime(false) - end end def sparkSetupTimer(timerSystem = $defaultTimerSystem) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |