Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

FixedObject Class Reference

#include <Objects.h>

Inheritance diagram for FixedObject:

Inheritance graph
[legend]
Collaboration diagram for FixedObject:

Collaboration graph
[legend]
List of all members.

Public Methods

VecPosition getGlobalPosition (SideT s, double dGoalWidth=14.02) const
AngDeg getGlobalAngle (SideT s)
void show (ostream &os=cout)

Detailed Description

Class FixedObject contains RoboCup information that is available for objects that cannot move (flags, goals, lines). No additional information is added to the superclass Object.

Definition at line 126 of file Objects.h.


Member Function Documentation

AngDeg FixedObject::getGlobalAngle SideT    s
 

This methods returns the global angle of this fixed object in the world. Only works when the fixed object is a line. The angle for the left team rises clockwise, i.e. left=0, bottom=90, etc. For the right team this is counterclockwise: right=0, top=90, etc)

Parameters:
s  side of agent (angles differ for left and right side)
Returns:
global angle of this line in the world.

Definition at line 307 of file Objects.cpp.

References AngDeg, SoccerTypes::getGlobalAngleLine(), Object::getType(), and SideT.

VecPosition FixedObject::getGlobalPosition SideT    s,
double    dGoalWidth = 14.02
const
 

This method returns the global position of this fixed object. Only works when the object type equals a flag or a goal. Furthermore the side of the agent has to be passed since the global positions differ for the left and the right side. For some flags the size of the goal is important. So this value can be passed also. Otherwise the default value is 14.02.

Parameters:
s  side of agent (global position differs for left and right side)
dGoalWidth  width of a goal, needed for pole objects next to goal
Returns:
global position of this fixed object.

Definition at line 296 of file Objects.cpp.

References SoccerTypes::getGlobalPositionFlag(), and SideT.

void FixedObject::show ostream &    os = cout [virtual]
 

This method prints all the information about this FixedObject to the specified output stream

Parameters:
os  output stream to print all relevant information to.

Reimplemented from Object.

Definition at line 275 of file Objects.cpp.

References DEFAULT_TEAM_NAME, VecPosition::getDirection(), VecPosition::getMagnitude(), SoccerTypes::getObjectStr(), MAX_TEAM_NAME_LENGTH, Object::objectType, Object::posRelative, Object::timeLastSeen, and Object::timeRelativePosition.


The documentation for this class was generated from the following files:
Generated on Fri Nov 7 11:46:02 2003 for UvA Trilearn 2003 Base Code by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001