Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RS::FrameworkSensorInterface Class Reference

This class is a implementation of the abstract SensorInterface class. More...

Inheritance diagram for RS::FrameworkSensorInterface:

Inheritance graph
[legend]
Collaboration diagram for RS::FrameworkSensorInterface:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FrameworkSensorInterface ()
 Default constructor.

virtual ~FrameworkSensorInterface ()
 Desturctor for the class.

void newCycle ()
 Is called when we have a new cycle.

void updateBeforeNewCycle ()
 Called before a new cycle is issued.

void see (const std::vector< ServerLineObject > &lines, const std::vector< ServerMarkerObject > &markers, const std::vector< ServerPlayerObject > &players, const ServerBallObject &ball)
 Called from Sensors when we have new visual information.

void seeFullstate (const std::vector< FullstatePlayerObject > &fplayers, const CoachBallObject &cball)
 Called from Sensors when we have new fullstate visual information.

void seeGlobal (const std::vector< CoachPlayerObject > &cplayers, const CoachBallObject &cball)
 Called from Sensors when we have new global visual information.(coach).

void sense (const ServerAgentObject &agent)
 Called from Sensors when we have new sense information.

void hearReferee (const PlayMode play_mode)
 Called when we hear the referee.

void hearCoach (const std::string &message)
 Called when we hear a message from our coach.

void hearSelf (const std::string &message)
 Called when we hear a message from ourself.

void hearPlayerAsCoach (const Team team, const UIntUnknown nr, const std::string &message)
 Called when we (the online coach) hear another player.

void hearTeammate (const UInt unum, const AngleDegUE direction, const std::string &message)
 Called when we (field player) hears a teammate.

void hearAnotherTeammate (const UInt unum)
 Called when we (field player) hears another teammate (no message).

void hearOpponent (const AngleDegUE direction, const std::string &message)
 Called when we (field player) hears a opponent.

void hearAnotherOpponent ()
 Called when we (field player) hears another opponent.

void setLastSensorType (const SensorType sensor_type)
 Sets the last command executed by the agent.

void setLastCommand (ServerCommand *command)

Protected Attributes

WorldModelInterfaceworldModelInterface
 A pointer to the agents worldModelInterface.

WorldObservation obsWorld
 The WorldObservation for the current cycle.


Detailed Description

This class is a implementation of the abstract SensorInterface class.

The information from the sensors is given error intervalls using the known information about server noise and then passed to the worldModelInterface in a WorldObservation object to be included in the agents WorldModel.

Todo:
Check error values.

Maybe the FrameworkSensorInterface should be responsible for calling the update functions in the ViewManager.

Unit:
BasicSystem
Revision
1.9
Author
frehe
Date
2007/08/26 18:29:11

Definition at line 95 of file FrameworkSensorInterface.h.


Member Data Documentation

WorldModelInterface* RS::FrameworkSensorInterface::worldModelInterface [protected]
 

A pointer to the agents worldModelInterface.

This is used to pass WorldObservation objects to reflect the new sensor information about the world.

Definition at line 163 of file FrameworkSensorInterface.h.

Referenced by setLastSensorType(), and updateBeforeNewCycle().


The documentation for this class was generated from the following files:
Generated on Mon Aug 29 08:26:04 2011 for RoboSoc by doxygen1.3-rc3