#include <HeadMotionTesterDlgBar.h>
Inheritance diagram for CHeadMotionTesterDlgBar:
Public Types | |
IDD = IDD_DIALOG_BAR_HEADMOTIONTESTER | |
enum | { IDD = IDD_DIALOG_BAR_HEADMOTIONTESTER } |
Public Member Functions | |
CHeadMotionTesterDlgBar () | |
Public Attributes | |
CEdit | m_zEdit |
CButton | m_RadioMode |
CButton | m_RadioRequest |
CListBox | m_ControlModeList |
CStatic | m_TiltStatic |
CEdit | m_TiltValueEdit |
CButton | m_SendButton |
CStatic | m_RollStatic |
CEdit | m_RollValueEdit |
CButton | m_ResetButton |
CStatic | m_PanStatic |
CEdit | m_PanValueEdit |
CStatic | m_MouthStatic |
CEdit | m_MouthValueEdit |
CSliderCtrl | m_TiltSlider |
CSliderCtrl | m_RollSlider |
CSliderCtrl | m_PanSlider |
CSliderCtrl | m_MouthSlider |
CButton | m_ERS7Check |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual BOOL | OnInitDialog () |
void | Reset () |
afx_msg void | OnSend () |
afx_msg void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg void | OnRadioMode () |
afx_msg void | OnRadioRequest () |
afx_msg void | OnReset () |
afx_msg void | OnSelchangeModeList () |
afx_msg void | OnDblclkModeList () |
afx_msg void | OnERS7Check () |
DECLARE_MESSAGE_MAP () | |
Protected Attributes | |
HeadMotionRequest | headMotionRequest |
HeadControlMode | headControlMode |
unsigned long | lastSentTime |
bool | sendAllowed |
Definition at line 24 of file HeadMotionTesterDlgBar.h.
anonymous enum |
CHeadMotionTesterDlgBar::CHeadMotionTesterDlgBar | ( | ) |
Default constructor.
Definition at line 16 of file HeadMotionTesterDlgBar.cpp.
CHeadMotionTesterDlgBar::DECLARE_MESSAGE_MAP | ( | ) | [protected] |
Reimplemented from CDynamicBarDlg.
void CHeadMotionTesterDlgBar::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 24 of file HeadMotionTesterDlgBar.cpp.
References IDC_HEADMOTIONTESTER_CHECK_ERS7, IDC_HEADMOTIONTESTER_MODE_LIST, IDC_HEADMOTIONTESTER_MOUTH_SLIDER, IDC_HEADMOTIONTESTER_MOUTH_STATIC, IDC_HEADMOTIONTESTER_MOUTHVALUE_EDIT, IDC_HEADMOTIONTESTER_PAN_SLIDER, IDC_HEADMOTIONTESTER_PAN_STATIC, IDC_HEADMOTIONTESTER_PANVALUE_EDIT, IDC_HEADMOTIONTESTER_RADIO_MODE, IDC_HEADMOTIONTESTER_RADIO_REQUEST, IDC_HEADMOTIONTESTER_RESET_BUTTON, IDC_HEADMOTIONTESTER_ROLL_SLIDER, IDC_HEADMOTIONTESTER_ROLL_STATIC, IDC_HEADMOTIONTESTER_ROLLVALUE_EDIT, IDC_HEADMOTIONTESTER_SEND_BUTTON, IDC_HEADMOTIONTESTER_TILT_SLIDER, IDC_HEADMOTIONTESTER_TILT_STATIC, IDC_HEADMOTIONTESTER_TILTVALUE_EDIT, m_ControlModeList, m_ERS7Check, m_MouthSlider, m_MouthStatic, m_MouthValueEdit, m_PanSlider, m_PanStatic, m_PanValueEdit, m_RadioMode, m_RadioRequest, m_ResetButton, m_RollSlider, m_RollStatic, m_RollValueEdit, m_SendButton, m_TiltSlider, m_TiltStatic, and m_TiltValueEdit.
void CHeadMotionTesterDlgBar::OnDblclkModeList | ( | ) | [protected] |
void CHeadMotionTesterDlgBar::OnERS7Check | ( | ) | [protected] |
Definition at line 237 of file HeadMotionTesterDlgBar.cpp.
References RobotDimensions::jointLimitHeadPanN, RobotDimensions::jointLimitHeadPanP, RobotDimensions::jointLimitHeadTiltN, RobotDimensions::jointLimitHeadTiltP, RobotDimensions::jointLimitNeckTiltN, RobotDimensions::jointLimitNeckTiltP, m_ERS7Check, m_MouthSlider, m_PanSlider, m_RollSlider, m_RollStatic, m_TiltSlider, pi_2, and toMicroRad().
void CHeadMotionTesterDlgBar::OnHScroll | ( | UINT | nSBCode, | |
UINT | nPos, | |||
CScrollBar * | pScrollBar | |||
) | [protected] |
Definition at line 147 of file HeadMotionTesterDlgBar.cpp.
References headMotionRequest, m_ControlModeList, m_MouthSlider, m_MouthValueEdit, m_PanSlider, m_PanValueEdit, m_RadioMode, m_RadioRequest, m_RollSlider, m_RollValueEdit, m_TiltSlider, m_TiltValueEdit, HeadMotionRequest::mouth, OnSend(), HeadMotionRequest::pan, HeadMotionRequest::roll, and HeadMotionRequest::tilt.
BOOL CHeadMotionTesterDlgBar::OnInitDialog | ( | ) | [protected, virtual] |
Reimplemented from CDynamicDialog.
Definition at line 65 of file HeadMotionTesterDlgBar.cpp.
References HeadControlMode::getHeadControlModeName(), HeadControlMode::numOfHeadControlModes, CDynamicDialog::OnInitDialog(), pi_2, toMicroRad(), and TRUE.
void CHeadMotionTesterDlgBar::OnRadioMode | ( | ) | [protected] |
Definition at line 179 of file HeadMotionTesterDlgBar.cpp.
References HeadControlMode::headControlMode, headControlMode, m_ControlModeList, and OnSend().
void CHeadMotionTesterDlgBar::OnRadioRequest | ( | ) | [protected] |
Definition at line 185 of file HeadMotionTesterDlgBar.cpp.
References m_ControlModeList, and OnSend().
void CHeadMotionTesterDlgBar::OnReset | ( | ) | [protected] |
void CHeadMotionTesterDlgBar::OnSelchangeModeList | ( | ) | [protected] |
Definition at line 224 of file HeadMotionTesterDlgBar.cpp.
References HeadControlMode::headControlMode, headControlMode, m_ControlModeList, m_RadioMode, and m_RadioRequest.
void CHeadMotionTesterDlgBar::OnSend | ( | ) | [protected] |
Definition at line 103 of file HeadMotionTesterDlgBar.cpp.
References OutMessage::bin, OutMessage::finishMessage(), SystemCall::getCurrentSystemTime(), getQueues(), SystemCall::getTimeSince(), HeadControlMode::headControlMode, headControlMode, headMotionRequest, idHeadControlMode, idHeadMotionRequest, lastSentTime, m_RadioMode, HeadControlMode::none, MessageQueue::out, CRobotControlQueuesToRobots::selectedRobot, sendAllowed, CRobotControlQueues::toPhysical, and CRobotControlQueues::toSimulated.
Referenced by OnDblclkModeList(), OnHScroll(), OnRadioMode(), OnRadioRequest(), and OnReset().
void CHeadMotionTesterDlgBar::Reset | ( | ) | [protected] |
resets headControlMode and headMotionRequest without sending it
Definition at line 191 of file HeadMotionTesterDlgBar.cpp.
References headMotionRequest, m_ControlModeList, m_ERS7Check, m_MouthSlider, m_MouthValueEdit, m_PanSlider, m_PanValueEdit, m_RadioMode, m_RadioRequest, m_RollSlider, m_RollValueEdit, m_TiltSlider, m_TiltValueEdit, HeadMotionRequest::mouth, HeadMotionRequest::pan, HeadMotionRequest::roll, sendAllowed, and HeadMotionRequest::tilt.
Referenced by OnReset().
Definition at line 64 of file HeadMotionTesterDlgBar.h.
Referenced by OnRadioMode(), OnSelchangeModeList(), and OnSend().
Definition at line 63 of file HeadMotionTesterDlgBar.h.
Referenced by OnHScroll(), OnSend(), and Reset().
unsigned long CHeadMotionTesterDlgBar::lastSentTime [protected] |
Definition at line 37 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnHScroll(), OnRadioMode(), OnRadioRequest(), OnSelchangeModeList(), and Reset().
Definition at line 52 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnERS7Check(), and Reset().
CSliderCtrl CHeadMotionTesterDlgBar::m_MouthSlider |
Definition at line 51 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnERS7Check(), OnHScroll(), and Reset().
Definition at line 47 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnHScroll(), and Reset().
CSliderCtrl CHeadMotionTesterDlgBar::m_PanSlider |
Definition at line 50 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnERS7Check(), OnHScroll(), and Reset().
Definition at line 45 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnHScroll(), and Reset().
Definition at line 35 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnHScroll(), OnSelchangeModeList(), OnSend(), and Reset().
Definition at line 36 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnHScroll(), OnSelchangeModeList(), and Reset().
CSliderCtrl CHeadMotionTesterDlgBar::m_RollSlider |
Definition at line 49 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnERS7Check(), OnHScroll(), and Reset().
Definition at line 41 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), and OnERS7Check().
Definition at line 42 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnHScroll(), and Reset().
CSliderCtrl CHeadMotionTesterDlgBar::m_TiltSlider |
Definition at line 48 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnERS7Check(), OnHScroll(), and Reset().
Definition at line 39 of file HeadMotionTesterDlgBar.h.
Referenced by DoDataExchange(), OnHScroll(), and Reset().
Definition at line 34 of file HeadMotionTesterDlgBar.h.
bool CHeadMotionTesterDlgBar::sendAllowed [protected] |