#include <sexpmonitor.h>
Inheritance diagram for SexpMonitor:
Public Member Functions | |
SexpMonitor () | |
virtual | ~SexpMonitor () |
void | ParseMonitorMessage (const std::string &data) |
If a monitor sends information to the world model, this function is called to process it. | |
virtual std::string | GetMonitorInfo (const oxygen::PredicateList &pList) |
This function will be called periodically to get information about the current state of the world. | |
virtual std::string | GetMonitorHeaderInfo (const oxygen::PredicateList &pList) |
This function is called once for every MonitorSystem each time a new client connects. | |
void | SendRotationMatrix (bool send) |
This method can be used to set the flag for sending the rotation matrix of every object to the monitor. | |
Protected Member Functions | |
virtual bool | ConstructInternal () |
called after the object has been created and attached to a core to allow for object dependent internal construction | |
void | AddAgents (boost::shared_ptr< oxygen::Scene > activeScene, std::ostringstream &ss) const |
collects data from agentaspects and constructs a S-Expr description | |
void | AddFlags (boost::shared_ptr< oxygen::Scene > activeScene, std::ostringstream &ss) |
collects flag data and constructs a S-Expression description | |
void | AddBall (boost::shared_ptr< oxygen::Scene > activeScene, std::ostringstream &ss) const |
adds ball data to output string stream | |
virtual void | OnLink () |
sets the reference to the GameStateAspect | |
virtual void | OnUnlink () |
resets the reference to the GameStateAspect | |
virtual void | UpdateCached () |
update variables from a script | |
void | ResetSentFlags () |
void | AddPredicates (std::ostringstream &ss, const oxygen::PredicateList &pList) |
constructs a S-Expression from the predicate list received from the MonitorServer | |
Protected Attributes | |
boost::shared_ptr< GameStateAspect > | mGameState |
boost::shared_ptr< TrainerCommandParser > | mCommandParser |
boost::shared_ptr< BallStateAspect > | mBallState |
bool | mSendRotMatrix |
bool | mSentFlags |
flag if the monitors received field flags information |
Protocoll: (Init ...) Sends information about the simulator setup
Definition at line 45 of file sexpmonitor.h.
|
Definition at line 46 of file sexpmonitor.cpp. |
|
Definition at line 50 of file sexpmonitor.cpp. |
|
collects data from agentaspects and constructs a S-Expr description
Referenced by GetMonitorInfo(). |
|
adds ball data to output string stream
Referenced by GetMonitorInfo(). |
|
collects flag data and constructs a S-Expression description
Referenced by GetMonitorInfo(). |
|
constructs a S-Expression from the predicate list received from the MonitorServer
Definition at line 81 of file sexpmonitor.cpp. References zeitgeist::ParameterList::AdvanceValue(), zeitgeist::ParameterList::begin(), oxygen::PredicateList::begin(), zeitgeist::ParameterList::end(), oxygen::PredicateList::end(), oxygen::Predicate::name, oxygen::Predicate::parameter, and paramList. Referenced by GetMonitorHeaderInfo(), and GetMonitorInfo(). Here is the call graph for this function: ![]() |
|
called after the object has been created and attached to a core to allow for object dependent internal construction
Reimplemented from zeitgeist::Object. Definition at line 55 of file sexpmonitor.cpp. |
|
This function is called once for every MonitorSystem each time a new client connects. It should return any header/setup information that is needed.
Implements oxygen::MonitorSystem. Definition at line 250 of file sexpmonitor.cpp. References AddPredicates(), and ResetSentFlags(). Here is the call graph for this function: ![]() |
|
This function will be called periodically to get information about the current state of the world.
Implements oxygen::MonitorSystem. Definition at line 213 of file sexpmonitor.cpp. References AddAgents(), AddBall(), AddFlags(), AddPredicates(), zeitgeist::Object::GetCore(), zeitgeist::Object::GetLog(), mCommandParser, and mGameState. Here is the call graph for this function: ![]() |
|
sets the reference to the GameStateAspect
Reimplemented from zeitgeist::Leaf. Definition at line 264 of file sexpmonitor.cpp. References zeitgeist::Node::AddChildReference(), zeitgeist::Object::GetCore(), SoccerBase::GetGameState(), zeitgeist::Object::GetLog(), mCommandParser, mGameState, and UpdateCached(). Here is the call graph for this function: ![]() |
|
resets the reference to the GameStateAspect
Reimplemented from zeitgeist::Leaf. Definition at line 299 of file sexpmonitor.cpp. References mBallState, mCommandParser, and mGameState. |
|
If a monitor sends information to the world model, this function is called to process it.
Implements oxygen::MonitorSystem. |
|
Definition at line 307 of file sexpmonitor.cpp. References mSentFlags. Referenced by GetMonitorHeaderInfo(). |
|
This method can be used to set the flag for sending the rotation matrix of every object to the monitor.
Definition at line 313 of file sexpmonitor.cpp. References mSendRotMatrix. |
|
update variables from a script
Reimplemented from zeitgeist::Node. Definition at line 286 of file sexpmonitor.cpp. References zeitgeist::Object::GetCore(), zeitgeist::Object::GetLog(), and mBallState. Referenced by OnLink(). Here is the call graph for this function: ![]() |
|
Definition at line 117 of file sexpmonitor.h. Referenced by OnUnlink(), and UpdateCached(). |
|
Definition at line 115 of file sexpmonitor.h. Referenced by GetMonitorInfo(), OnLink(), and OnUnlink(). |
|
Definition at line 113 of file sexpmonitor.h. Referenced by GetMonitorInfo(), OnLink(), and OnUnlink(). |
|
Definition at line 120 of file sexpmonitor.h. Referenced by SendRotationMatrix(). |
|
flag if the monitors received field flags information
Definition at line 124 of file sexpmonitor.h. Referenced by ResetSentFlags(). |