GT RoboCup SSL
Soccer software, robot firmware
WorldRobot Class Reference

Public Types

enum  Team { YELLOW, BLUE }
 

Public Member Functions

 WorldRobot ()
 Creates an invalid world robot. More...
 
 WorldRobot (RJ::Time calcTime, Team team, int robotID, std::list< KalmanRobot > kalmanRobots)
 Creates a valid world robot. More...
 
bool getIsValid () const
 
Team getTeamColor () const
 
int getRobotID () const
 
Geometry2d::Point getPos () const
 
double getTheta () const
 
Geometry2d::Point getVel () const
 
double getOmega () const
 
double getPosCov () const
 
double getVelCov () const
 
const std::list< KalmanRobot > & getRobotComponents () const
 
RJ::Time getTime () const
 

Static Public Member Functions

static void createConfiguration (Configuration *cfg)
 

Constructor & Destructor Documentation

◆ WorldRobot() [1/2]

WorldRobot::WorldRobot ( )

Creates an invalid world robot.

This is so the World can create a full list of robots without dealing with holes It's a little less efficient, but it makes things much cleaner code-wise

◆ WorldRobot() [2/2]

WorldRobot::WorldRobot ( RJ::Time  calcTime,
Team  team,
int  robotID,
std::list< KalmanRobot kalmanRobots 
)

Creates a valid world robot.

Parameters
robotIDThe ID of the robot
teamThe team color
kalmanRobotsList of kalman robots from each of the cameras to merger

Member Function Documentation

◆ getIsValid()

bool WorldRobot::getIsValid ( ) const
Returns
If the robot actually represents a real robot

◆ getOmega()

double WorldRobot::getOmega ( ) const
Returns
The best estimated angular velocity of the robot

◆ getPos()

Geometry2d::Point WorldRobot::getPos ( ) const
Returns
The best estimated position of the robot

◆ getPosCov()

double WorldRobot::getPosCov ( ) const
Returns
The average position covariance of the filter including theta

◆ getRobotComponents()

const std::list< KalmanRobot > & WorldRobot::getRobotComponents ( ) const
Returns
List of all the building kalman robots for this world robot

◆ getRobotID()

int WorldRobot::getRobotID ( ) const
Returns
The robot id

◆ getTeamColor()

Team WorldRobot::getTeamColor ( ) const
Returns
Enum value representing team color

◆ getTheta()

double WorldRobot::getTheta ( ) const
Returns
The best estimated heading of the robot

◆ getTime()

RJ::Time WorldRobot::getTime ( ) const
Returns
Time of creation for the robot estimate

◆ getVel()

Geometry2d::Point WorldRobot::getVel ( ) const
Returns
The best estimated velocity of the robot

◆ getVelCov()

double WorldRobot::getVelCov ( ) const
Returns
The average velocity covariance of the filter including omega

The documentation for this class was generated from the following files: