#include <GT2004WalkingEngineParamSetDlgBar.h>
Inheritance diagram for CGT2004WalkingEngineParamSetDlgBar:
Public Types | |
IDD = IDD_DIALOG_BAR_GT2004WALKINGPARAMETERSET | |
enum | { IDD = IDD_DIALOG_BAR_GT2004WALKINGPARAMETERSET } |
Public Member Functions | |
CGT2004WalkingEngineParamSetDlgBar () | |
bool | handleMessage (InMessage &message) |
Public Attributes | |
int | currentParametersNumber |
GT2004Parameters * | currentParam |
GT2004Parameters | extraParam |
double | speed |
double | ratio |
double | direction |
CStatic | m_correctLabel |
CStatic | m_rotLabel |
CComboBox | m_FootMode |
CComboBox | m_ChooseRatio |
CComboBox | m_ChooseDirection |
CComboBox | m_ChooseSpeed |
CButton | m_autoCheck |
GT2004ParametersSet | paramSet |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual BOOL | OnInitDialog () |
void | copyToClipboard (bool useInvKin=false) |
void | pasteFromClipboard (bool useInvKin=false) |
void | setParametersSelection () |
afx_msg void | OnSend () |
afx_msg void | OnLoad () |
afx_msg void | OnSave () |
afx_msg void | OnMirror () |
afx_msg void | OnMeasure () |
afx_msg void | OnChangeSpeed () |
afx_msg void | OnChangeRatio () |
afx_msg void | OnChangeDirection () |
afx_msg void | OnChangeRequest () |
afx_msg void | OnSelchangeChooseSet () |
afx_msg void | OnContextMenu (CWnd *pWnd, CPoint point) |
DECLARE_MESSAGE_MAP () |
Definition at line 19 of file GT2004WalkingEngineParamSetDlgBar.h.
anonymous enum |
CGT2004WalkingEngineParamSetDlgBar::CGT2004WalkingEngineParamSetDlgBar | ( | ) |
Definition at line 13 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References currentParam, currentParametersNumber, extraParam, GT2004ParametersSet::getParameters(), and paramSet.
void CGT2004WalkingEngineParamSetDlgBar::copyToClipboard | ( | bool | useInvKin = false |
) | [protected] |
Definition at line 394 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References InvKinWalkingParameters::bodyShiftOffset, InvKinWalkingParameters::bodyShiftX, InvKinWalkingParameters::bodyShiftY, InvKinWalkingParameters::bodyTiltOffset, buffer, InvKinWalkingParameters::counterRotation, currentParam, InvKinWalkingParameters::footMode, InvKinWalkingParameters::foreCenterX, InvKinWalkingParameters::foreFootLift, InvKinWalkingParameters::foreFootTilt, InvKinWalkingParameters::foreHeight, InvKinWalkingParameters::foreWidth, InvKinWalkingParameters::groundPhase, InvKinWalkingParameters::hindCenterX, InvKinWalkingParameters::hindFootLift, InvKinWalkingParameters::hindFootTilt, InvKinWalkingParameters::hindHeight, InvKinWalkingParameters::hindWidth, InvKinWalkingParameters::legPhase, InvKinWalkingParameters::legSpeedFactorR, InvKinWalkingParameters::legSpeedFactorX, InvKinWalkingParameters::legSpeedFactorY, InvKinWalkingParameters::liftPhase, InvKinWalkingParameters::loweringPhase, InvKinWalkingParameters::maxRotationChange, InvKinWalkingParameters::maxSpeedXChange, InvKinWalkingParameters::maxSpeedYChange, InvKinWalkingParameters::maxStepSizeX, InvKinWalkingParameters::maxStepSizeY, and InvKinWalkingParameters::stepLen.
Referenced by OnContextMenu().
CGT2004WalkingEngineParamSetDlgBar::DECLARE_MESSAGE_MAP | ( | ) | [protected] |
Reimplemented from CDynamicBarDlg.
void CGT2004WalkingEngineParamSetDlgBar::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 23 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References GT2004Parameters::correctedMotion, currentParam, GT2004Parameters::footMode, GT2004Parameters::foreCenterX, GT2004Parameters::foreFootLift, GT2004Parameters::foreFootTilt, GT2004Parameters::foreHeight, GT2004Parameters::foreWidth, GT2004Parameters::groundPhase, GT2004Parameters::hindCenterX, GT2004Parameters::hindFootLift, GT2004Parameters::hindFootTilt, GT2004Parameters::hindHeight, GT2004Parameters::hindWidth, IDC_GT2004WALKINGPARAMETERSET_AUTO, IDC_GT2004WALKINGPARAMETERSET_CHOOSEDIRECTION, IDC_GT2004WALKINGPARAMETERSET_CHOOSERATIO, IDC_GT2004WALKINGPARAMETERSET_CHOOSESPEED, IDC_GT2004WALKINGPARAMETERSET_CORMOT_R, IDC_GT2004WALKINGPARAMETERSET_CORMOT_X, IDC_GT2004WALKINGPARAMETERSET_CORMOT_Y, IDC_GT2004WALKINGPARAMETERSET_CORRECTLABEL, IDC_GT2004WALKINGPARAMETERSET_DIRECTION, IDC_GT2004WALKINGPARAMETERSET_FOOTMODE, IDC_GT2004WALKINGPARAMETERSET_FORECENTERX, IDC_GT2004WALKINGPARAMETERSET_FOREFOOTLIFT, IDC_GT2004WALKINGPARAMETERSET_FOREFOOTTILT, IDC_GT2004WALKINGPARAMETERSET_FOREHEIGHT, IDC_GT2004WALKINGPARAMETERSET_FOREWIDTH, IDC_GT2004WALKINGPARAMETERSET_GROUNDPHASEF, IDC_GT2004WALKINGPARAMETERSET_GROUNDPHASEH, IDC_GT2004WALKINGPARAMETERSET_HINDCENTERX, IDC_GT2004WALKINGPARAMETERSET_HINDFOOTLIFT, IDC_GT2004WALKINGPARAMETERSET_HINDFOOTTILT, IDC_GT2004WALKINGPARAMETERSET_HINDHEIGHT, IDC_GT2004WALKINGPARAMETERSET_HINDWIDTH, IDC_GT2004WALKINGPARAMETERSET_LEGPHASE0, IDC_GT2004WALKINGPARAMETERSET_LEGPHASE1, IDC_GT2004WALKINGPARAMETERSET_LEGPHASE2, IDC_GT2004WALKINGPARAMETERSET_LEGPHASE3, IDC_GT2004WALKINGPARAMETERSET_RATIO, IDC_GT2004WALKINGPARAMETERSET_REQMOT_R, IDC_GT2004WALKINGPARAMETERSET_REQMOT_X, IDC_GT2004WALKINGPARAMETERSET_REQMOT_Y, IDC_GT2004WALKINGPARAMETERSET_ROTLABEL, IDC_GT2004WALKINGPARAMETERSET_SPEED, IDC_GT2004WALKINGPARAMETERSET_STEPLEN, int(), GT2004Parameters::legPhase, m_autoCheck, m_ChooseDirection, m_ChooseRatio, m_ChooseSpeed, m_correctLabel, m_FootMode, m_rotLabel, ratio, GT2004Parameters::requestedMotion, Pose2D::rotation, speed, GT2004Parameters::stepLen, Pose2D::translation, Vector2< V >::x, and Vector2< V >::y.
bool CGT2004WalkingEngineParamSetDlgBar::handleMessage | ( | InMessage & | message | ) | [virtual] |
Is called for incoming debug messages.
message | The message to handle. |
Reimplemented from CRobotControlDialogBar.
Definition at line 261 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References InMessage::bin, currentParam, currentParametersNumber, extraParam, InMessage::getMessageID(), GT2004ParametersSet::getParameters(), idGT2004Parameters, GT2004Parameters::index, GT2004ParametersSet::mirrorThis(), GT2004ParametersSet::numberOfParameters, paramSet, and setParametersSelection().
void CGT2004WalkingEngineParamSetDlgBar::OnChangeDirection | ( | ) | [protected] |
Definition at line 325 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References currentParam, pi, GT2004Parameters::requestedMotion, and GT2004ParametersSet::setDirection().
void CGT2004WalkingEngineParamSetDlgBar::OnChangeRatio | ( | ) | [protected] |
Definition at line 314 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References currentParam, pi, ratio, GT2004Parameters::requestedMotion, GT2004ParametersSet::setDirection(), and GT2004ParametersSet::setRatio().
void CGT2004WalkingEngineParamSetDlgBar::OnChangeRequest | ( | ) | [protected] |
Definition at line 291 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References currentParam, GT2004ParametersSet::getDirection(), GT2004ParametersSet::getRatio(), GT2004ParametersSet::getSpeed(), pi, ratio, GT2004Parameters::requestedMotion, and speed.
Referenced by OnSelchangeChooseSet(), and setParametersSelection().
void CGT2004WalkingEngineParamSetDlgBar::OnChangeSpeed | ( | ) | [protected] |
Definition at line 300 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References currentParam, pi, ratio, GT2004Parameters::requestedMotion, GT2004ParametersSet::setDirection(), GT2004ParametersSet::setRatio(), GT2004ParametersSet::setSpeed(), and speed.
void CGT2004WalkingEngineParamSetDlgBar::OnContextMenu | ( | CWnd * | pWnd, | |
CPoint | point | |||
) | [protected] |
Definition at line 517 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References copyToClipboard(), IDC_GT2004WALKINGPARAMETERSET_COPY, IDC_GT2004WALKINGPARAMETERSET_INVKIN_COPY, IDC_GT2004WALKINGPARAMETERSET_INVKIN_PASTE, IDC_GT2004WALKINGPARAMETERSET_PASTE, IDP_GT2004WALKINGPARAMETERSET_MENU, pasteFromClipboard(), and VERIFY.
BOOL CGT2004WalkingEngineParamSetDlgBar::OnInitDialog | ( | ) | [protected, virtual] |
Reimplemented from CDynamicDialog.
Definition at line 99 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References int(), GT2004ParametersSet::no_turn_0_fast, CDynamicDialog::OnInitDialog(), and TRUE.
void CGT2004WalkingEngineParamSetDlgBar::OnLoad | ( | ) | [protected] |
Definition at line 200 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References OutMessage::bin, OutMessage::finishMessage(), getQueues(), idGT2004EvolutionRequest, idText, GT2004ParametersSet::load(), MessageQueue::out, paramSet, CRobotControlQueuesToRobots::selectedRobot, OutMessage::text, CRobotControlQueues::toGUI, CRobotControlQueues::toPhysical, and CRobotControlQueues::toSimulated.
void CGT2004WalkingEngineParamSetDlgBar::OnMeasure | ( | ) | [protected] |
Definition at line 240 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References OutMessage::bin, currentParam, currentParametersNumber, OutMessage::finishMessage(), getQueues(), idGT2004EvolutionRequest, m_autoCheck, GT2004ParametersSet::numberOfParameters, MessageQueue::out, GT2004Parameters::requestedMotion, CRobotControlQueuesToRobots::selectedRobot, CRobotControlQueues::toPhysical, and CRobotControlQueues::toSimulated.
void CGT2004WalkingEngineParamSetDlgBar::OnMirror | ( | ) | [protected] |
Definition at line 182 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References GT2004ParametersSet::mirrorLeftTurnToRightTurn(), and paramSet.
void CGT2004WalkingEngineParamSetDlgBar::OnSave | ( | ) | [protected] |
Definition at line 216 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References OutMessage::bin, OutMessage::finishMessage(), File::getGTDir(), getQueues(), idGT2004EvolutionRequest, MessageQueue::out, paramSet, GT2004ParametersSet::save(), CRobotControlQueuesToRobots::selectedRobot, and CRobotControlQueues::toPhysical.
void CGT2004WalkingEngineParamSetDlgBar::OnSelchangeChooseSet | ( | ) | [protected] |
Definition at line 333 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References currentParam, currentParametersNumber, extraParam, GT2004ParametersSet::getParameters(), m_ChooseDirection, m_ChooseRatio, m_ChooseSpeed, m_correctLabel, m_rotLabel, GT2004ParametersSet::numberOfParameters, OnChangeRequest(), paramSet, ratio, and speed.
void CGT2004WalkingEngineParamSetDlgBar::OnSend | ( | ) | [protected] |
Definition at line 189 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References OutMessage::bin, currentParam, OutMessage::finishMessage(), getQueues(), idGT2004Parameters, MessageQueue::out, CRobotControlQueuesToRobots::selectedRobot, CRobotControlQueues::toPhysical, and CRobotControlQueues::toSimulated.
void CGT2004WalkingEngineParamSetDlgBar::pasteFromClipboard | ( | bool | useInvKin = false |
) | [protected] |
Definition at line 431 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References InvKinWalkingParameters::bodyShiftOffset, InvKinWalkingParameters::bodyShiftX, InvKinWalkingParameters::bodyShiftY, InvKinWalkingParameters::bodyTiltOffset, buffer, InvKinWalkingParameters::counterRotation, currentParam, currentParametersNumber, extraParam, InvKinWalkingParameters::footMode, InvKinWalkingParameters::foreCenterX, InvKinWalkingParameters::foreFootLift, InvKinWalkingParameters::foreFootTilt, InvKinWalkingParameters::foreHeight, InvKinWalkingParameters::foreWidth, GT2004ParametersSet::getParameters(), InvKinWalkingParameters::groundPhase, InvKinWalkingParameters::headPan, InvKinWalkingParameters::headRoll, InvKinWalkingParameters::headTilt, InvKinWalkingParameters::hindCenterX, InvKinWalkingParameters::hindFootLift, InvKinWalkingParameters::hindFootTilt, InvKinWalkingParameters::hindHeight, InvKinWalkingParameters::hindWidth, GT2004Parameters::index, jointDataInvalidValue, InvKinWalkingParameters::legPhase, InvKinWalkingParameters::legSpeedFactorR, InvKinWalkingParameters::legSpeedFactorX, InvKinWalkingParameters::legSpeedFactorY, InvKinWalkingParameters::liftPhase, InvKinWalkingParameters::loweringPhase, InvKinWalkingParameters::maxRotationChange, InvKinWalkingParameters::maxSpeedXChange, InvKinWalkingParameters::maxSpeedYChange, InvKinWalkingParameters::maxStepSizeX, InvKinWalkingParameters::maxStepSizeY, GT2004ParametersSet::mirrorThis(), InvKinWalkingParameters::mouth, GT2004ParametersSet::numberOfParameters, InvKinWalkingParameters::numOfFootModes, paramSet, setParametersSelection(), and InvKinWalkingParameters::stepLen.
Referenced by OnContextMenu().
void CGT2004WalkingEngineParamSetDlgBar::setParametersSelection | ( | ) | [protected] |
Definition at line 145 of file GT2004WalkingEngineParamSetDlgBar.cpp.
References currentParametersNumber, m_ChooseDirection, m_ChooseRatio, m_ChooseSpeed, and OnChangeRequest().
Referenced by handleMessage(), and pasteFromClipboard().
Definition at line 26 of file GT2004WalkingEngineParamSetDlgBar.h.
Referenced by CGT2004WalkingEngineParamSetDlgBar(), copyToClipboard(), DoDataExchange(), handleMessage(), OnChangeDirection(), OnChangeRatio(), OnChangeRequest(), OnChangeSpeed(), OnMeasure(), OnSelchangeChooseSet(), OnSend(), and pasteFromClipboard().
Definition at line 25 of file GT2004WalkingEngineParamSetDlgBar.h.
Referenced by CGT2004WalkingEngineParamSetDlgBar(), handleMessage(), OnMeasure(), OnSelchangeChooseSet(), pasteFromClipboard(), and setParametersSelection().
Definition at line 30 of file GT2004WalkingEngineParamSetDlgBar.h.
Definition at line 27 of file GT2004WalkingEngineParamSetDlgBar.h.
Referenced by CGT2004WalkingEngineParamSetDlgBar(), handleMessage(), OnSelchangeChooseSet(), and pasteFromClipboard().
Definition at line 41 of file GT2004WalkingEngineParamSetDlgBar.h.
Referenced by DoDataExchange(), and OnMeasure().
Definition at line 39 of file GT2004WalkingEngineParamSetDlgBar.h.
Referenced by DoDataExchange(), OnSelchangeChooseSet(), and setParametersSelection().
Definition at line 38 of file GT2004WalkingEngineParamSetDlgBar.h.
Referenced by DoDataExchange(), OnSelchangeChooseSet(), and setParametersSelection().
Definition at line 40 of file GT2004WalkingEngineParamSetDlgBar.h.
Referenced by DoDataExchange(), OnSelchangeChooseSet(), and setParametersSelection().
Definition at line 34 of file GT2004WalkingEngineParamSetDlgBar.h.
Referenced by DoDataExchange(), and OnSelchangeChooseSet().
Definition at line 35 of file GT2004WalkingEngineParamSetDlgBar.h.
Referenced by DoDataExchange(), and OnSelchangeChooseSet().
Definition at line 42 of file GT2004WalkingEngineParamSetDlgBar.h.
Referenced by CGT2004WalkingEngineParamSetDlgBar(), handleMessage(), OnLoad(), OnMirror(), OnSave(), OnSelchangeChooseSet(), and pasteFromClipboard().
Definition at line 29 of file GT2004WalkingEngineParamSetDlgBar.h.
Referenced by DoDataExchange(), OnChangeRatio(), OnChangeRequest(), OnChangeSpeed(), and OnSelchangeChooseSet().
Definition at line 28 of file GT2004WalkingEngineParamSetDlgBar.h.
Referenced by DoDataExchange(), OnChangeRequest(), OnChangeSpeed(), and OnSelchangeChooseSet().