![]() |
GT RoboCup SSL
Soccer software, robot firmware
|
Filtered robot estimation for a single camera. More...
Public Member Functions | |
KalmanRobot (unsigned int cameraID, RJ::Time creationTime, CameraRobot initMeasurement, const WorldRobot &previousWorldRobot) | |
Checks previousWorldRobot to see if it's valid. More... | |
void | predict (RJ::Time currentTime) |
Predicts one time step forward. More... | |
void | predictAndUpdate (RJ::Time currentTime, CameraRobot updateRobot) |
Predicts one time step forward then triangulates toward the measurement. More... | |
bool | isUnhealthy () const |
Returns true when the filter hasn't been updated in a while and should be deleted. | |
unsigned int | getCameraID () const |
int | getRobotID () const |
int | getHealth () const |
Geometry2d::Point | getPos () const |
double | getTheta () const |
Geometry2d::Point | getVel () const |
double | getOmega () const |
Geometry2d::Point | getPosCov () const |
double | getThetaCov () const |
Geometry2d::Point | getVelCov () const |
double | getOmegaCov () const |
const boost::circular_buffer< CameraRobot > & | getPrevMeasurements () const |
Static Public Member Functions | |
static void | createConfiguration (Configuration *cfg) |
Filtered robot estimation for a single camera.
KalmanRobot::KalmanRobot | ( | unsigned int | cameraID, |
RJ::Time | creationTime, | ||
CameraRobot | initMeasurement, | ||
const WorldRobot & | previousWorldRobot | ||
) |
Checks previousWorldRobot to see if it's valid.
cameraID | ID of the camera this filter is applied to |
creationTime | Time this filter was created |
initMeasurement | Initial robot measurement |
previousWorldRobot | World robot from last frame (or invalid world robot) |
unsigned int KalmanRobot::getCameraID | ( | ) | const |
int KalmanRobot::getHealth | ( | ) | const |
double KalmanRobot::getOmega | ( | ) | const |
double KalmanRobot::getOmegaCov | ( | ) | const |
Geometry2d::Point KalmanRobot::getPos | ( | ) | const |
Geometry2d::Point KalmanRobot::getPosCov | ( | ) | const |
const boost::circular_buffer< CameraRobot > & KalmanRobot::getPrevMeasurements | ( | ) | const |
int KalmanRobot::getRobotID | ( | ) | const |
double KalmanRobot::getTheta | ( | ) | const |
double KalmanRobot::getThetaCov | ( | ) | const |
Geometry2d::Point KalmanRobot::getVel | ( | ) | const |
Geometry2d::Point KalmanRobot::getVelCov | ( | ) | const |
void KalmanRobot::predict | ( | RJ::Time | currentTime | ) |
Predicts one time step forward.
currentTime | Current time of the prediction step |
void KalmanRobot::predictAndUpdate | ( | RJ::Time | currentTime, |
CameraRobot | updateRobot | ||
) |
Predicts one time step forward then triangulates toward the measurement.
currentTime | Current time of the prediction/update step |
updateRobot | Robot measurement that we are using as feedback |