#include <KickLogger.h>
Inheritance diagram for KickLogger:
Public Member Functions | |
KickLogger (BehaviorControlInterfaces &interfaces) | |
Constructor. | |
~KickLogger () | |
destructor | |
void | execute () |
Executes the logger. | |
Private Types | |
enum | State { initial, kickRequested, kickStarted, kickFinished, waitingForBall, wait } |
Different states of the shoot logger. More... | |
Private Member Functions | |
void | changeState (State newState) |
Changes the state of the logger. | |
void | record () |
Writes a collected record if requested by a debug key to the debug message queue. | |
double | getBallX (Pose2D from) |
Returns the relative x position of a ball position. | |
double | getBallY (Pose2D from) |
Returns the relative y position of a ball position. | |
Private Attributes | |
State | state |
The state of the logger. | |
unsigned long | timeOfLastStateChange |
The time of the last state change. | |
KickCase | kick |
The kick record. | |
SpecialActionRequest::SpecialActionID | kickID |
The requested kick. | |
OdometryData | odometryDataWhenKickWasStarted |
The odometry data when the kick was started. |
Definition at line 23 of file KickLogger.h.
|
Different states of the shoot logger.
Definition at line 40 of file KickLogger.h. |
|
Constructor.
Definition at line 14 of file KickLogger.cpp. |
|
destructor
Definition at line 20 of file KickLogger.cpp. |
|
Here is the call graph for this function:
|
Changes the state of the logger.
Definition at line 121 of file KickLogger.cpp. References SystemCall::getCurrentSystemTime(), and timeOfLastStateChange. Referenced by execute(). |
Here is the call graph for this function:
|
Writes a collected record if requested by a debug key to the debug message queue.
Definition at line 128 of file KickLogger.cpp. References idKickRecord, INFO, kick, and kickID. Referenced by execute(). |
|
Returns the relative x position of a ball position.
Definition at line 109 of file KickLogger.cpp. References Geometry::distanceTo(), and BallModel::seen. Referenced by execute(). |
Here is the call graph for this function:
|
Returns the relative y position of a ball position.
Definition at line 115 of file KickLogger.cpp. References Geometry::distanceTo(), and BallModel::seen. Referenced by execute(). |
Here is the call graph for this function:
|
The state of the logger.
Definition at line 44 of file KickLogger.h. |
|
The time of the last state change.
Definition at line 50 of file KickLogger.h. Referenced by changeState(), and execute(). |
|
The kick record.
Definition at line 59 of file KickLogger.h. |
|
The requested kick.
Definition at line 62 of file KickLogger.h. |
|
The odometry data when the kick was started.
Definition at line 65 of file KickLogger.h. Referenced by execute(). |