CGT2004BallLocatorSetDlgBar Class Reference

#include <GT2004BallLocatorSetDlgBar.h>

Inheritance diagram for CGT2004BallLocatorSetDlgBar:

CRobotControlDialogBar CDynamicBarDlg MessageHandler CDynamicChildDlg CDynamicDialog CDynamicWndEx CDynamicWnd List of all members.

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< KalmanModelParameterskalmanModelParameters
 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< KalmanModelStatekalmanModelStates
 states of the Kalman process models

Detailed Description

Dialog containing controls to set parameters of Kalman process models and to display the states of the process models

Definition at line 134 of file GT2004BallLocatorSetDlgBar.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
IDD 

Definition at line 148 of file GT2004BallLocatorSetDlgBar.h.


Constructor & Destructor Documentation

CGT2004BallLocatorSetDlgBar::CGT2004BallLocatorSetDlgBar (  ) 

Definition at line 183 of file GT2004BallLocatorSetDlgBar.cpp.

References bParamRequestSent.


Member Function Documentation

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

Parameters:
message the message to be handled
Returns:
true if message was 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

Parameters:
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().


Member Data Documentation

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().

CButton CGT2004BallLocatorSetDlgBar::m_checkPhysicalRobot

Definition at line 157 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), OnKsSend(), and RequestKalmanParameters().

CButton CGT2004BallLocatorSetDlgBar::m_checkUseModel

Definition at line 158 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), OnKsSend(), and ShowSelKalmanParametersEntry().

CComboBox CGT2004BallLocatorSetDlgBar::m_comboKalmanModel

Definition at line 164 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), OnKsSend(), ShowKalmanParameters(), ShowSelKalmanParametersEntry(), and ShowSelKalmanState().

CEdit CGT2004BallLocatorSetDlgBar::m_editGlobalVX

Definition at line 156 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), and ShowSelKalmanState().

CEdit CGT2004BallLocatorSetDlgBar::m_editGlobalVY

Definition at line 155 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), and ShowSelKalmanState().

CEdit CGT2004BallLocatorSetDlgBar::m_editGlobalX

Definition at line 154 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), and ShowSelKalmanState().

CEdit CGT2004BallLocatorSetDlgBar::m_editGlobalY

Definition at line 153 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), and ShowSelKalmanState().

CEdit CGT2004BallLocatorSetDlgBar::m_editMatrixP

Definition at line 163 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), and ShowSelKalmanState().

CEdit CGT2004BallLocatorSetDlgBar::m_editMatrixQ

Definition at line 162 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), OnKsSend(), ShowKalmanParameters(), and ShowSelKalmanParametersEntry().

CEdit CGT2004BallLocatorSetDlgBar::m_editMatrixR

Definition at line 161 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), OnKsSend(), ShowKalmanParameters(), and ShowSelKalmanParametersEntry().

CEdit CGT2004BallLocatorSetDlgBar::m_editMessages

Definition at line 160 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange().

CEdit CGT2004BallLocatorSetDlgBar::m_editModelVX

Definition at line 152 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), and ShowSelKalmanState().

CEdit CGT2004BallLocatorSetDlgBar::m_editModelVY

Definition at line 151 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), and ShowSelKalmanState().

CEdit CGT2004BallLocatorSetDlgBar::m_editModelX

Definition at line 150 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), and ShowSelKalmanState().

CEdit CGT2004BallLocatorSetDlgBar::m_editModelY

Definition at line 149 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), and ShowSelKalmanState().

CEdit CGT2004BallLocatorSetDlgBar::m_editProbability

Definition at line 159 of file GT2004BallLocatorSetDlgBar.h.

Referenced by DoDataExchange(), and ShowSelKalmanState().

RobotPose CGT2004BallLocatorSetDlgBar::robotPose [private]

robot pose

Definition at line 217 of file GT2004BallLocatorSetDlgBar.h.

Referenced by ReadFilterStates().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:21:12 2006 for DT2005.panorama by  doxygen 1.4.7