#include <MotionTesterDlgBar.h>
Inheritance diagram for CMotionTesterDlgBar:
Public Types | |
IDD = IDD_DIALOG_BAR_MOTIONTESTER | |
enum | { IDD = IDD_DIALOG_BAR_MOTIONTESTER } |
Public Member Functions | |
CMotionTesterDlgBar () | |
Public Attributes | |
CComboBox | m_tailCombo |
CStatic | m_tailStatic |
CComboBox | m_walkTypeCombo |
CListBox | m_typeList |
CSliderCtrl | m_walkSlider1 |
CSliderCtrl | m_walkSlider2 |
CSliderCtrl | m_walkSlider3 |
CSliderCtrl | m_mcSlowMotionSlider |
CStatic | m_motionControlStatic |
CStatic | m_motionControlRTStatic |
CStatic | m_motionControlSlowStatic |
CStatic | m_forwardStatic |
CStatic | m_backwardStatic |
CStatic | m_leftStatic |
CStatic | m_rightStatic |
CStatic | m_rotLeftStatic |
CStatic | m_rotRightStatic |
CStatic | m_forwardBackwardStatic |
CStatic | m_leftRightStatic |
CStatic | m_rotLeftRightStatic |
CListBox | m_specialActionList |
CButton | m_sendButton |
CButton | m_resetButton |
CButton | m_stabilizeCheck |
CButton | m_updateRPCheck |
CButton | m_smoothControlCheck |
CButton | m_stopButton |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual BOOL | OnInitDialog () |
void | OnHScroll () |
void | showCurrentMotion (int mode) |
double | makeSmooth (double value) |
afx_msg void | OnSend () |
afx_msg void | OnReset () |
afx_msg void | OnSelchangeSpecialActionList () |
afx_msg void | OnUpdateControl (CCmdUI *pCmdUI) |
afx_msg void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg void | OnDblclkSpecialActionList () |
afx_msg void | OnSelchangeTypeList () |
afx_msg void | OnDblclkTypeList () |
afx_msg void | OnStabilizeCheck () |
afx_msg void | OnUpdateRPCheck () |
afx_msg void | OnBreatheCheck () |
afx_msg void | OnSmoothControlCheck () |
afx_msg void | OnSelchangeWalkType () |
afx_msg void | OnButtonA () |
afx_msg void | OnButtonD () |
afx_msg void | OnButtonE () |
afx_msg void | OnButtonQ () |
afx_msg void | OnButtonS () |
afx_msg void | OnButtonW () |
afx_msg void | OnButtonX () |
afx_msg void | OnSelchangeTailCombo () |
DECLARE_MESSAGE_MAP () | |
Protected Attributes | |
MotionRequest | motionRequest |
int | motionControlExecuteSlowMotion |
unsigned long | lastSentTime |
bool | smoothControlMode |
Definition at line 24 of file MotionTesterDlgBar.h.
anonymous enum |
CMotionTesterDlgBar::CMotionTesterDlgBar | ( | ) |
Default constructor.
Definition at line 15 of file MotionTesterDlgBar.cpp.
References smoothControlMode.
CMotionTesterDlgBar::DECLARE_MESSAGE_MAP | ( | ) | [protected] |
Reimplemented from CDynamicBarDlg.
void CMotionTesterDlgBar::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 26 of file MotionTesterDlgBar.cpp.
References IDC_MOTION_TESTER_BACKWARD_STATIC, IDC_MOTION_TESTER_BUTTON_X2, IDC_MOTION_TESTER_EXECUTEMC_STATIC, IDC_MOTION_TESTER_EXECUTEMOTIONCONTROL_SLIDER, IDC_MOTION_TESTER_FORWARD_BACKWARD_STATIC, IDC_MOTION_TESTER_FORWARD_LEFT_RIGHT_STATIC, IDC_MOTION_TESTER_FORWARD_ROT_LEFT_RIGHT_STATIC, IDC_MOTION_TESTER_FORWARD_STATIC, IDC_MOTION_TESTER_LEFT_STATIC, IDC_MOTION_TESTER_RESET_BUTTON, IDC_MOTION_TESTER_RIGHT_STATIC, IDC_MOTION_TESTER_ROT_LEFT_STATIC, IDC_MOTION_TESTER_ROT_RIGHT_STATIC, IDC_MOTION_TESTER_RTMC_STATIC, IDC_MOTION_TESTER_SEND_BUTTON, IDC_MOTION_TESTER_SLOWMC_STATIC, IDC_MOTION_TESTER_SMOOTHCONTROL_CHECK, IDC_MOTION_TESTER_SPECIAL_ACTION_LIST, IDC_MOTION_TESTER_STABILIZE_CHECK, IDC_MOTION_TESTER_TAIL_COMBO, IDC_MOTION_TESTER_TAIL_STATIC, IDC_MOTION_TESTER_TYPE_LIST, IDC_MOTION_TESTER_UPDATEODOMETRYINMOTION_CHECK, IDC_MOTION_TESTER_WALK_SLIDER1, IDC_MOTION_TESTER_WALK_SLIDER2, IDC_MOTION_TESTER_WALK_SLIDER3, IDC_MOTION_TESTER_WALK_TYPE, m_backwardStatic, m_forwardBackwardStatic, m_forwardStatic, m_leftRightStatic, m_leftStatic, m_mcSlowMotionSlider, m_motionControlRTStatic, m_motionControlSlowStatic, m_motionControlStatic, m_resetButton, m_rightStatic, m_rotLeftRightStatic, m_rotLeftStatic, m_rotRightStatic, m_sendButton, m_smoothControlCheck, m_specialActionList, m_stabilizeCheck, m_stopButton, m_tailCombo, m_tailStatic, m_typeList, m_updateRPCheck, m_walkSlider1, m_walkSlider2, m_walkSlider3, and m_walkTypeCombo.
double CMotionTesterDlgBar::makeSmooth | ( | double | value | ) | [protected] |
Definition at line 456 of file MotionTesterDlgBar.cpp.
Referenced by OnButtonA(), OnButtonD(), OnButtonE(), OnButtonQ(), OnButtonS(), and OnButtonW().
afx_msg void CMotionTesterDlgBar::OnBreatheCheck | ( | ) | [protected] |
void CMotionTesterDlgBar::OnButtonA | ( | ) | [protected] |
Definition at line 182 of file MotionTesterDlgBar.cpp.
References m_typeList, m_walkSlider1, m_walkSlider2, m_walkSlider3, makeSmooth(), OnHScroll(), OnSelchangeTypeList(), smoothControlMode, MotionRequest::walk, and walkMaxLeftRightSpeed.
void CMotionTesterDlgBar::OnButtonD | ( | ) | [protected] |
Definition at line 195 of file MotionTesterDlgBar.cpp.
References m_typeList, m_walkSlider1, m_walkSlider2, m_walkSlider3, makeSmooth(), OnHScroll(), OnSelchangeTypeList(), smoothControlMode, MotionRequest::walk, and walkMaxLeftRightSpeed.
void CMotionTesterDlgBar::OnButtonE | ( | ) | [protected] |
Definition at line 209 of file MotionTesterDlgBar.cpp.
References m_typeList, m_walkSlider1, m_walkSlider2, m_walkSlider3, makeSmooth(), OnHScroll(), OnSelchangeTypeList(), smoothControlMode, toDegrees(), MotionRequest::walk, and walkMaxRotationSpeed.
void CMotionTesterDlgBar::OnButtonQ | ( | ) | [protected] |
Definition at line 222 of file MotionTesterDlgBar.cpp.
References m_typeList, m_walkSlider1, m_walkSlider2, m_walkSlider3, makeSmooth(), OnHScroll(), OnSelchangeTypeList(), smoothControlMode, toDegrees(), MotionRequest::walk, and walkMaxRotationSpeed.
void CMotionTesterDlgBar::OnButtonS | ( | ) | [protected] |
Definition at line 236 of file MotionTesterDlgBar.cpp.
References m_typeList, m_walkSlider1, m_walkSlider2, m_walkSlider3, makeSmooth(), OnHScroll(), OnSelchangeTypeList(), smoothControlMode, MotionRequest::walk, and walkMaxBackwardSpeed.
void CMotionTesterDlgBar::OnButtonW | ( | ) | [protected] |
Definition at line 249 of file MotionTesterDlgBar.cpp.
References m_typeList, m_walkSlider1, m_walkSlider2, m_walkSlider3, makeSmooth(), OnHScroll(), OnSelchangeTypeList(), smoothControlMode, MotionRequest::walk, walkMaxBackwardSpeed, and walkMaxForwardSpeed.
void CMotionTesterDlgBar::OnButtonX | ( | ) | [protected] |
Definition at line 262 of file MotionTesterDlgBar.cpp.
References m_typeList, m_walkSlider1, m_walkSlider2, m_walkSlider3, OnHScroll(), OnSelchangeTypeList(), and MotionRequest::walk.
void CMotionTesterDlgBar::OnDblclkSpecialActionList | ( | ) | [protected] |
void CMotionTesterDlgBar::OnDblclkTypeList | ( | ) | [protected] |
void CMotionTesterDlgBar::OnHScroll | ( | UINT | nSBCode, | |
UINT | nPos, | |||
CScrollBar * | pScrollBar | |||
) | [protected] |
void CMotionTesterDlgBar::OnHScroll | ( | ) | [protected] |
Definition at line 401 of file MotionTesterDlgBar.cpp.
References fromDegrees(), m_forwardBackwardStatic, m_leftRightStatic, m_mcSlowMotionSlider, m_rotLeftRightStatic, m_walkSlider1, m_walkSlider2, m_walkSlider3, motionControlExecuteSlowMotion, motionRequest, OnSend(), Pose2D::rotation, Pose2D::translation, WalkRequest::walkParams, MotionRequest::walkRequest, Vector2< V >::x, and Vector2< V >::y.
Referenced by OnButtonA(), OnButtonD(), OnButtonE(), OnButtonQ(), OnButtonS(), OnButtonW(), OnButtonX(), OnHScroll(), OnReset(), and OnSelchangeTypeList().
BOOL CMotionTesterDlgBar::OnInitDialog | ( | ) | [protected, virtual] |
Reimplemented from CDynamicDialog.
Definition at line 86 of file MotionTesterDlgBar.cpp.
References MotionRequest::getMotionName(), SpecialActionRequest::getSpecialActionIDName(), TailRequest::getTailRequestIDName(), WalkRequest::getWalkTypeName(), MotionRequest::numOfMotion, SpecialActionRequest::numOfSpecialAction, TailRequest::numOfTailRequests, WalkRequest::numOfWalkType, CDynamicDialog::OnInitDialog(), MotionRequest::specialAction, toDegrees(), TRUE, walkMaxBackwardSpeed, walkMaxForwardSpeed, walkMaxLeftRightSpeed, and walkMaxRotationSpeed.
void CMotionTesterDlgBar::OnReset | ( | ) | [protected] |
Definition at line 301 of file MotionTesterDlgBar.cpp.
References m_specialActionList, m_stabilizeCheck, m_tailCombo, m_updateRPCheck, m_walkSlider1, m_walkSlider2, m_walkSlider3, m_walkTypeCombo, motionRequest, MotionRequest::motionType, OnHScroll(), OnSend(), Pose2D::rotation, showCurrentMotion(), MotionRequest::specialAction, MotionRequest::specialActionRequest, SpecialActionRequest::specialActionType, MotionRequest::stabilize, MotionRequest::stand, MotionRequest::tailRequest, TailRequest::tailRequestID, Pose2D::translation, MotionRequest::updateRP, MotionRequest::walk, WalkRequest::walkParams, MotionRequest::walkRequest, WalkRequest::walkType, Vector2< V >::x, and Vector2< V >::y.
void CMotionTesterDlgBar::OnSelchangeSpecialActionList | ( | ) | [protected] |
Definition at line 382 of file MotionTesterDlgBar.cpp.
References m_specialActionList, motionRequest, MotionRequest::specialActionRequest, and SpecialActionRequest::specialActionType.
Referenced by OnSelchangeTypeList().
void CMotionTesterDlgBar::OnSelchangeTailCombo | ( | ) | [protected] |
Definition at line 388 of file MotionTesterDlgBar.cpp.
References m_tailCombo, motionRequest, MotionRequest::tailRequest, and TailRequest::tailRequestID.
void CMotionTesterDlgBar::OnSelchangeTypeList | ( | ) | [protected] |
Definition at line 358 of file MotionTesterDlgBar.cpp.
References m_typeList, motionRequest, MotionRequest::motionType, OnHScroll(), OnSelchangeSpecialActionList(), OnSelchangeWalkType(), showCurrentMotion(), MotionRequest::specialAction, and MotionRequest::walk.
Referenced by OnButtonA(), OnButtonD(), OnButtonE(), OnButtonQ(), OnButtonS(), OnButtonW(), and OnButtonX().
void CMotionTesterDlgBar::OnSelchangeWalkType | ( | ) | [protected] |
Definition at line 376 of file MotionTesterDlgBar.cpp.
References m_walkTypeCombo, motionRequest, MotionRequest::walkRequest, and WalkRequest::walkType.
Referenced by OnSelchangeTypeList().
void CMotionTesterDlgBar::OnSend | ( | ) | [protected] |
Definition at line 273 of file MotionTesterDlgBar.cpp.
References CRobotControlQueuesToRobots::allRobots, OutMessage::bin, OutMessage::finishMessage(), SystemCall::getCurrentSystemTime(), getQueues(), SystemCall::getTimeSince(), idMotionControlSlowMotion, idMotionRequest, idText, lastSentTime, motionControlExecuteSlowMotion, motionRequest, MessageQueue::out, CRobotControlQueuesToRobots::selectedRobot, OutMessage::text, CRobotControlQueues::toGUI, CRobotControlQueues::toPhysical, and CRobotControlQueues::toSimulated.
Referenced by OnDblclkSpecialActionList(), OnDblclkTypeList(), OnHScroll(), OnReset(), OnStabilizeCheck(), and OnUpdateRPCheck().
void CMotionTesterDlgBar::OnSmoothControlCheck | ( | ) | [protected] |
Definition at line 448 of file MotionTesterDlgBar.cpp.
References OutMessage::finishMessage(), getQueues(), idText, MessageQueue::out, smoothControlMode, OutMessage::text, and CRobotControlQueues::toGUI.
void CMotionTesterDlgBar::OnStabilizeCheck | ( | ) | [protected] |
Definition at line 440 of file MotionTesterDlgBar.cpp.
References OutMessage::finishMessage(), getQueues(), idText, motionRequest, OnSend(), MessageQueue::out, MotionRequest::stabilize, OutMessage::text, and CRobotControlQueues::toGUI.
void CMotionTesterDlgBar::OnUpdateControl | ( | CCmdUI * | pCmdUI | ) | [protected] |
Definition at line 178 of file MotionTesterDlgBar.cpp.
void CMotionTesterDlgBar::OnUpdateRPCheck | ( | ) | [protected] |
Definition at line 432 of file MotionTesterDlgBar.cpp.
References OutMessage::finishMessage(), getQueues(), idText, motionRequest, OnSend(), MessageQueue::out, MotionRequest::stabilize, OutMessage::text, CRobotControlQueues::toGUI, and MotionRequest::updateRP.
void CMotionTesterDlgBar::showCurrentMotion | ( | int | mode | ) | [protected] |
Definition at line 332 of file MotionTesterDlgBar.cpp.
References m_backwardStatic, m_forwardBackwardStatic, m_forwardStatic, m_leftRightStatic, m_leftStatic, m_rightStatic, m_rotLeftRightStatic, m_rotLeftStatic, m_rotRightStatic, m_specialActionList, m_stopButton, m_walkSlider1, m_walkSlider2, m_walkSlider3, m_walkTypeCombo, motionRequest, MotionRequest::motionType, MotionRequest::specialAction, and MotionRequest::walk.
Referenced by OnReset(), and OnSelchangeTypeList().
unsigned long CMotionTesterDlgBar::lastSentTime [protected] |
Definition at line 46 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), and showCurrentMotion().
Definition at line 51 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnHScroll(), and showCurrentMotion().
Definition at line 45 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), and showCurrentMotion().
Definition at line 52 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnHScroll(), and showCurrentMotion().
Definition at line 47 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), and showCurrentMotion().
CSliderCtrl CMotionTesterDlgBar::m_mcSlowMotionSlider |
Definition at line 41 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), and OnHScroll().
Definition at line 48 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), and showCurrentMotion().
Definition at line 53 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnHScroll(), and showCurrentMotion().
Definition at line 49 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), and showCurrentMotion().
Definition at line 50 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), and showCurrentMotion().
Definition at line 54 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnReset(), OnSelchangeSpecialActionList(), and showCurrentMotion().
Definition at line 60 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), and showCurrentMotion().
CComboBox CMotionTesterDlgBar::m_tailCombo |
Definition at line 34 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnReset(), and OnSelchangeTailCombo().
CListBox CMotionTesterDlgBar::m_typeList |
Definition at line 37 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnButtonA(), OnButtonD(), OnButtonE(), OnButtonQ(), OnButtonS(), OnButtonW(), OnButtonX(), and OnSelchangeTypeList().
CSliderCtrl CMotionTesterDlgBar::m_walkSlider1 |
Definition at line 38 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnButtonA(), OnButtonD(), OnButtonE(), OnButtonQ(), OnButtonS(), OnButtonW(), OnButtonX(), OnHScroll(), OnReset(), and showCurrentMotion().
CSliderCtrl CMotionTesterDlgBar::m_walkSlider2 |
Definition at line 39 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnButtonA(), OnButtonD(), OnButtonE(), OnButtonQ(), OnButtonS(), OnButtonW(), OnButtonX(), OnHScroll(), OnReset(), and showCurrentMotion().
CSliderCtrl CMotionTesterDlgBar::m_walkSlider3 |
Definition at line 40 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnButtonA(), OnButtonD(), OnButtonE(), OnButtonQ(), OnButtonS(), OnButtonW(), OnButtonX(), OnHScroll(), OnReset(), and showCurrentMotion().
CComboBox CMotionTesterDlgBar::m_walkTypeCombo |
Definition at line 36 of file MotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnReset(), OnSelchangeWalkType(), and showCurrentMotion().
int CMotionTesterDlgBar::motionControlExecuteSlowMotion [protected] |
MotionRequest CMotionTesterDlgBar::motionRequest [protected] |
Definition at line 74 of file MotionTesterDlgBar.h.
Referenced by OnHScroll(), OnReset(), OnSelchangeSpecialActionList(), OnSelchangeTailCombo(), OnSelchangeTypeList(), OnSelchangeWalkType(), OnSend(), OnStabilizeCheck(), OnUpdateRPCheck(), and showCurrentMotion().
bool CMotionTesterDlgBar::smoothControlMode [protected] |
Definition at line 78 of file MotionTesterDlgBar.h.
Referenced by CMotionTesterDlgBar(), OnButtonA(), OnButtonD(), OnButtonE(), OnButtonQ(), OnButtonS(), OnButtonW(), and OnSmoothControlCheck().