GT RoboCup SSL
Soccer software, robot firmware
CameraRobot Class Reference

Wrapper for the protobuf observation. More...

Public Member Functions

 CameraRobot (RJ::Time timeCaptured, Geometry2d::Point pos, double theta, int robotID)
 
RJ::Time getTimeCaptured () const
 
Geometry2d::Point getPos () const
 
double getTheta () const
 
int getRobotID () const
 

Static Public Member Functions

static CameraRobot CombineRobots (const std::list< CameraRobot > &robots)
 Combines all the robots in the list and returns a robot with the average pos, time, and theta. More...
 

Detailed Description

Wrapper for the protobuf observation.

Constructor & Destructor Documentation

◆ CameraRobot()

CameraRobot::CameraRobot ( RJ::Time  timeCaptured,
Geometry2d::Point  pos,
double  theta,
int  robotID 
)
inline
Parameters
timeCapturedTime the frame was captured
posPosition of the robot observation
thetaHeading of the robot observation
robotIDID of the robot

Member Function Documentation

◆ CombineRobots()

CameraRobot CameraRobot::CombineRobots ( const std::list< CameraRobot > &  robots)
static

Combines all the robots in the list and returns a robot with the average pos, time, and theta.

Parameters
robotsThe list of robots to combine

Note: All robots must have the same robotID

◆ getPos()

Geometry2d::Point CameraRobot::getPos ( ) const
Returns
the position of the measurement

◆ getRobotID()

int CameraRobot::getRobotID ( ) const
Returns
the robot ID of the measurement

◆ getTheta()

double CameraRobot::getTheta ( ) const
Returns
the heading of the measurement

◆ getTimeCaptured()

RJ::Time CameraRobot::getTimeCaptured ( ) const
Returns
the time the detection was captured

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