Contains all the useful information for a kick Like: Who kicked, when, what are the ball positions since etc.
More...
Contains all the useful information for a kick Like: Who kicked, when, what are the ball positions since etc.
◆ KickEvent()
KickEvent::KickEvent |
( |
RJ::Time |
kickTime, |
|
|
WorldRobot |
kickingRobot, |
|
|
std::deque< VisionState > |
statesSinceKick |
|
) |
| |
|
inline |
Creates a valid kick event.
- Parameters
-
kickTime | Time of kick |
kickingRobot | World robot who is the one kicking |
statesSinceKick | All the vision states that we have since the kick |
◆ addState()
Adds a state to the history Use when the kick event is already created and we are trying to estimate the kick trajectory.
- Parameters
-
calcTime | Time of current frame |
ball | Ball at current frame |
yellowRobots | Yellow robots at current frame |
blueRobots | Blue robots at current frame |
◆ getIsValid()
bool KickEvent::getIsValid |
( |
| ) |
const |
- Returns
- true if the kick is a valid one
◆ getKickingRobot()
- Returns
- robot we think kicked
◆ getKickTime()
RJ::Time KickEvent::getKickTime |
( |
| ) |
const |
- Returns
- time we think a robot kicked
◆ getStatesSinceKick()
const std::deque< VisionState > & KickEvent::getStatesSinceKick |
( |
| ) |
const |
- Returns
- vision states since that time we kicked
The documentation for this class was generated from the following files:
- soccer/vision/kick/KickEvent.hpp
- soccer/vision/kick/KickEvent.cpp