#include <GT2004BallLocatorSetDlgBar.h>
Inheritance diagram for CGT2004BallLocatorSetDlgBar:
Public Types | |
IDD = IDD_DIALOG_BAR_GT2004BALLLOCATOR_SETTINGS | |
enum | { IDD = IDD_DIALOG_BAR_GT2004BALLLOCATOR_SETTINGS } |
Public Member Functions | |
CGT2004BallLocatorSetDlgBar () | |
virtual bool | handleMessage (InMessage &message) |
Public Attributes | |
CEdit | m_editModelY |
CEdit | m_editModelX |
CEdit | m_editModelVY |
CEdit | m_editModelVX |
CEdit | m_editGlobalY |
CEdit | m_editGlobalX |
CEdit | m_editGlobalVY |
CEdit | m_editGlobalVX |
CButton | m_checkPhysicalRobot |
CButton | m_checkUseModel |
CEdit | m_editProbability |
CEdit | m_editMessages |
CEdit | m_editMatrixR |
CEdit | m_editMatrixQ |
CEdit | m_editMatrixP |
CComboBox | m_comboKalmanModel |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual BOOL | OnInitDialog () |
afx_msg void | OnKsGet () |
afx_msg void | OnSelchangeKsKalmanModel () |
afx_msg void | OnKsSend () |
Private Member Functions | |
void | ReadKalmanParameters (InMessage &message) |
void | RequestKalmanParameters () |
void | ReadFilterStates (InMessage &message) |
void | ShowSelKalmanParametersEntry () |
void | ShowKalmanParameters () |
void | ShowSelKalmanState () |
Private Attributes | |
bool | bParamRequestSent |
std::vector< KalmanModelParameters > | kalmanModelParameters |
Parameters of the kalman process model. | |
unsigned long | kalmanStateTime |
time calculations where performed at | |
RobotPose | robotPose |
robot pose | |
double | global_x_rel |
global x-position relative to robot in millimeters | |
double | global_y_rel |
global y-position relative to robot in millimeters | |
double | global_vx |
global x-direction speed in millimeters per second | |
double | global_vy |
global y-direction speed in millimeters per second | |
bool | ballWasSeen |
std::vector< KalmanModelState > | kalmanModelStates |
states of the Kalman process models |
Definition at line 134 of file GT2004BallLocatorSetDlgBar.h.
anonymous enum |
CGT2004BallLocatorSetDlgBar::CGT2004BallLocatorSetDlgBar | ( | ) |
void CGT2004BallLocatorSetDlgBar::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 191 of file GT2004BallLocatorSetDlgBar.cpp.
References IDC_GT2004BALLLOCATORSETTINGS_GLOBAL_VX, IDC_GT2004BALLLOCATORSETTINGS_GLOBAL_VY, IDC_GT2004BALLLOCATORSETTINGS_GLOBAL_X, IDC_GT2004BALLLOCATORSETTINGS_GLOBAL_Y, IDC_GT2004BALLLOCATORSETTINGS_KALMAN_MODEL, IDC_GT2004BALLLOCATORSETTINGS_MATRIX_P, IDC_GT2004BALLLOCATORSETTINGS_MATRIX_Q, IDC_GT2004BALLLOCATORSETTINGS_MATRIX_R, IDC_GT2004BALLLOCATORSETTINGS_MESSAGES, IDC_GT2004BALLLOCATORSETTINGS_MODEL_VX, IDC_GT2004BALLLOCATORSETTINGS_MODEL_VY, IDC_GT2004BALLLOCATORSETTINGS_MODEL_X, IDC_GT2004BALLLOCATORSETTINGS_MODEL_Y, IDC_GT2004BALLLOCATORSETTINGS_PROBABILITY, IDC_GT2004BALLLOCATORSETTINGS_USE_MODEL, IDC_PHYSICAL_ROBOT, m_checkPhysicalRobot, m_checkUseModel, m_comboKalmanModel, m_editGlobalVX, m_editGlobalVY, m_editGlobalX, m_editGlobalY, m_editMatrixP, m_editMatrixQ, m_editMatrixR, m_editMessages, m_editModelVX, m_editModelVY, m_editModelX, m_editModelY, and m_editProbability.
bool CGT2004BallLocatorSetDlgBar::handleMessage | ( | InMessage & | message | ) | [virtual] |
Handles messages with ID idKalmanData
message | the message to be handled |
Reimplemented from CRobotControlDialogBar.
Definition at line 228 of file GT2004BallLocatorSetDlgBar.cpp.
References bParamRequestSent, InMessage::getMessageID(), GT2004BallLocatorDebugData::idFilterState, idGT2004BallLocatorData, GT2004BallLocatorDebugData::idSendingParameters, CRobotControlQueues::isFromSelectedOrUndefinedRobot(), kalmanModelParameters, ReadFilterStates(), ReadKalmanParameters(), RequestKalmanParameters(), ShowKalmanParameters(), and ShowSelKalmanState().
BOOL CGT2004BallLocatorSetDlgBar::OnInitDialog | ( | ) | [protected, virtual] |
Reimplemented from CDynamicDialog.
Definition at line 222 of file GT2004BallLocatorSetDlgBar.cpp.
References CDynamicDialog::OnInitDialog(), and TRUE.
void CGT2004BallLocatorSetDlgBar::OnKsGet | ( | ) | [protected] |
Definition at line 292 of file GT2004BallLocatorSetDlgBar.cpp.
References RequestKalmanParameters().
void CGT2004BallLocatorSetDlgBar::OnKsSend | ( | ) | [protected] |
Definition at line 372 of file GT2004BallLocatorSetDlgBar.cpp.
References OutMessage::bin, OutMessage::finishMessage(), getQueues(), idGT2004BallLocatorData, GT2004BallLocatorDebugData::idSetParameters, kalmanModelParameters, m_checkPhysicalRobot, m_checkUseModel, m_comboKalmanModel, m_editMatrixQ, m_editMatrixR, MessageQueue::out, CRobotControlQueuesToRobots::selectedRobot, CRobotControlQueues::toPhysical, and CRobotControlQueues::toSimulated.
void CGT2004BallLocatorSetDlgBar::OnSelchangeKsKalmanModel | ( | ) | [protected] |
Definition at line 322 of file GT2004BallLocatorSetDlgBar.cpp.
References ShowSelKalmanParametersEntry(), and ShowSelKalmanState().
void CGT2004BallLocatorSetDlgBar::ReadFilterStates | ( | InMessage & | message | ) | [private] |
Reads the states of the Kalman process models from the message stream (sent by a KalmanBallLocator)
Definition at line 276 of file GT2004BallLocatorSetDlgBar.cpp.
References ballWasSeen, InMessage::bin, global_vx, global_vy, global_x_rel, global_y_rel, kalmanModelStates, kalmanStateTime, and robotPose.
Referenced by handleMessage().
void CGT2004BallLocatorSetDlgBar::ReadKalmanParameters | ( | InMessage & | message | ) | [private] |
Reads Kalman parameters sent by a KalmanBallLocator from message stream
message | the message |
Definition at line 263 of file GT2004BallLocatorSetDlgBar.cpp.
References InMessage::bin, kalmanModelParameters, and kalmanModelStates.
Referenced by handleMessage().
void CGT2004BallLocatorSetDlgBar::RequestKalmanParameters | ( | ) | [private] |
Request the Kalman parameters from a KalmanBallLocator on the selected robot
Definition at line 328 of file GT2004BallLocatorSetDlgBar.cpp.
References OutMessage::bin, bParamRequestSent, OutMessage::finishMessage(), getQueues(), idGT2004BallLocatorData, GT2004BallLocatorDebugData::idRequestParameters, m_checkPhysicalRobot, MessageQueue::out, CRobotControlQueuesToRobots::selectedRobot, CRobotControlQueues::toPhysical, and CRobotControlQueues::toSimulated.
Referenced by handleMessage(), and OnKsGet().
void CGT2004BallLocatorSetDlgBar::ShowKalmanParameters | ( | ) | [private] |
Displays available Kalman models.
Definition at line 297 of file GT2004BallLocatorSetDlgBar.cpp.
References kalmanModelParameters, m_comboKalmanModel, m_editMatrixQ, m_editMatrixR, and ShowSelKalmanParametersEntry().
Referenced by handleMessage().
void CGT2004BallLocatorSetDlgBar::ShowSelKalmanParametersEntry | ( | ) | [private] |
Displays the parameters of the chosen model
Definition at line 314 of file GT2004BallLocatorSetDlgBar.cpp.
References kalmanModelParameters, m_checkUseModel, m_comboKalmanModel, m_editMatrixQ, and m_editMatrixR.
Referenced by OnSelchangeKsKalmanModel(), and ShowKalmanParameters().
void CGT2004BallLocatorSetDlgBar::ShowSelKalmanState | ( | ) | [private] |
Shows the state of the selected Kalman process model
Definition at line 339 of file GT2004BallLocatorSetDlgBar.cpp.
References global_vx, global_vy, global_x_rel, global_y_rel, kalmanModelStates, m_comboKalmanModel, m_editGlobalVX, m_editGlobalVY, m_editGlobalX, m_editGlobalY, m_editMatrixP, m_editModelVX, m_editModelVY, m_editModelX, m_editModelY, and m_editProbability.
Referenced by handleMessage(), and OnSelchangeKsKalmanModel().
bool CGT2004BallLocatorSetDlgBar::ballWasSeen [private] |
true if ball was seen
Definition at line 222 of file GT2004BallLocatorSetDlgBar.h.
Referenced by ReadFilterStates().
bool CGT2004BallLocatorSetDlgBar::bParamRequestSent [private] |
true if request for parameters was sent
Definition at line 212 of file GT2004BallLocatorSetDlgBar.h.
Referenced by CGT2004BallLocatorSetDlgBar(), handleMessage(), and RequestKalmanParameters().
double CGT2004BallLocatorSetDlgBar::global_vx [private] |
global x-direction speed in millimeters per second
Definition at line 220 of file GT2004BallLocatorSetDlgBar.h.
Referenced by ReadFilterStates(), and ShowSelKalmanState().
double CGT2004BallLocatorSetDlgBar::global_vy [private] |
global y-direction speed in millimeters per second
Definition at line 221 of file GT2004BallLocatorSetDlgBar.h.
Referenced by ReadFilterStates(), and ShowSelKalmanState().
double CGT2004BallLocatorSetDlgBar::global_x_rel [private] |
global x-position relative to robot in millimeters
Definition at line 218 of file GT2004BallLocatorSetDlgBar.h.
Referenced by ReadFilterStates(), and ShowSelKalmanState().
double CGT2004BallLocatorSetDlgBar::global_y_rel [private] |
global y-position relative to robot in millimeters
Definition at line 219 of file GT2004BallLocatorSetDlgBar.h.
Referenced by ReadFilterStates(), and ShowSelKalmanState().
std::vector<KalmanModelParameters> CGT2004BallLocatorSetDlgBar::kalmanModelParameters [private] |
Parameters of the kalman process model.
Definition at line 214 of file GT2004BallLocatorSetDlgBar.h.
Referenced by handleMessage(), OnKsSend(), ReadKalmanParameters(), ShowKalmanParameters(), and ShowSelKalmanParametersEntry().
std::vector<KalmanModelState> CGT2004BallLocatorSetDlgBar::kalmanModelStates [private] |
states of the Kalman process models
Definition at line 224 of file GT2004BallLocatorSetDlgBar.h.
Referenced by ReadFilterStates(), ReadKalmanParameters(), and ShowSelKalmanState().
unsigned long CGT2004BallLocatorSetDlgBar::kalmanStateTime [private] |
time calculations where performed at
Definition at line 216 of file GT2004BallLocatorSetDlgBar.h.
Referenced by ReadFilterStates().
Definition at line 157 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), OnKsSend(), and RequestKalmanParameters().
Definition at line 158 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), OnKsSend(), and ShowSelKalmanParametersEntry().
Definition at line 164 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), OnKsSend(), ShowKalmanParameters(), ShowSelKalmanParametersEntry(), and ShowSelKalmanState().
Definition at line 156 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), and ShowSelKalmanState().
Definition at line 155 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), and ShowSelKalmanState().
Definition at line 154 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), and ShowSelKalmanState().
Definition at line 153 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), and ShowSelKalmanState().
Definition at line 163 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), and ShowSelKalmanState().
Definition at line 162 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), OnKsSend(), ShowKalmanParameters(), and ShowSelKalmanParametersEntry().
Definition at line 161 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), OnKsSend(), ShowKalmanParameters(), and ShowSelKalmanParametersEntry().
Definition at line 152 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), and ShowSelKalmanState().
Definition at line 151 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), and ShowSelKalmanState().
Definition at line 150 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), and ShowSelKalmanState().
Definition at line 149 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), and ShowSelKalmanState().
Definition at line 159 of file GT2004BallLocatorSetDlgBar.h.
Referenced by DoDataExchange(), and ShowSelKalmanState().
robot pose
Definition at line 217 of file GT2004BallLocatorSetDlgBar.h.
Referenced by ReadFilterStates().