GT RoboCup SSL
Soccer software, robot firmware
CameraBall Class Reference

Wrapper for the protobuf observation. More...

Public Member Functions

 CameraBall (RJ::Time timeCaptured, Geometry2d::Point pos)
 
RJ::Time getTimeCaptured () const
 
Geometry2d::Point getPos () const
 

Static Public Member Functions

static CameraBall CombineBalls (const std::vector< CameraBall > &balls)
 Combines all the balls in the list and returns a ball with the average pos and time. More...
 

Detailed Description

Wrapper for the protobuf observation.

Constructor & Destructor Documentation

◆ CameraBall()

CameraBall::CameraBall ( RJ::Time  timeCaptured,
Geometry2d::Point  pos 
)
inline
Parameters
timeCapturedTime that the picture was taken
posPosition of the ball at that time

Member Function Documentation

◆ CombineBalls()

CameraBall CameraBall::CombineBalls ( const std::vector< CameraBall > &  balls)
static

Combines all the balls in the list and returns a ball with the average pos and time.

Parameters
ballsThe list of balls to combine

◆ getPos()

Geometry2d::Point CameraBall::getPos ( ) const
Returns
Position of the measurement

◆ getTimeCaptured()

RJ::Time CameraBall::getTimeCaptured ( ) const
Returns
Time this measurement was captured

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