CHeadMotionTesterDlgBar Class Reference

#include <HeadMotionTesterDlgBar.h>

Inheritance diagram for CHeadMotionTesterDlgBar:

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

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

Detailed Description

A dialog bar to send head motion requests

Definition at line 24 of file HeadMotionTesterDlgBar.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
IDD 

Definition at line 33 of file HeadMotionTesterDlgBar.h.


Constructor & Destructor Documentation

CHeadMotionTesterDlgBar::CHeadMotionTesterDlgBar (  ) 

Default constructor.

Definition at line 16 of file HeadMotionTesterDlgBar.cpp.


Member Function Documentation

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]

Definition at line 232 of file HeadMotionTesterDlgBar.cpp.

References OnSend().

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]

Definition at line 218 of file HeadMotionTesterDlgBar.cpp.

References OnSend(), and Reset().

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


Member Data Documentation

HeadControlMode CHeadMotionTesterDlgBar::headControlMode [protected]

Definition at line 64 of file HeadMotionTesterDlgBar.h.

Referenced by OnRadioMode(), OnSelchangeModeList(), and OnSend().

HeadMotionRequest CHeadMotionTesterDlgBar::headMotionRequest [protected]

Definition at line 63 of file HeadMotionTesterDlgBar.h.

Referenced by OnHScroll(), OnSend(), and Reset().

unsigned long CHeadMotionTesterDlgBar::lastSentTime [protected]

Definition at line 66 of file HeadMotionTesterDlgBar.h.

Referenced by OnSend().

CListBox CHeadMotionTesterDlgBar::m_ControlModeList

Definition at line 37 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), OnRadioMode(), OnRadioRequest(), OnSelchangeModeList(), and Reset().

CButton CHeadMotionTesterDlgBar::m_ERS7Check

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

CStatic CHeadMotionTesterDlgBar::m_MouthStatic

Definition at line 46 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange().

CEdit CHeadMotionTesterDlgBar::m_MouthValueEdit

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

CStatic CHeadMotionTesterDlgBar::m_PanStatic

Definition at line 44 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange().

CEdit CHeadMotionTesterDlgBar::m_PanValueEdit

Definition at line 45 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and Reset().

CButton CHeadMotionTesterDlgBar::m_RadioMode

Definition at line 35 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), OnSelchangeModeList(), OnSend(), and Reset().

CButton CHeadMotionTesterDlgBar::m_RadioRequest

Definition at line 36 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), OnSelchangeModeList(), and Reset().

CButton CHeadMotionTesterDlgBar::m_ResetButton

Definition at line 43 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange().

CSliderCtrl CHeadMotionTesterDlgBar::m_RollSlider

Definition at line 49 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange(), OnERS7Check(), OnHScroll(), and Reset().

CStatic CHeadMotionTesterDlgBar::m_RollStatic

Definition at line 41 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange(), and OnERS7Check().

CEdit CHeadMotionTesterDlgBar::m_RollValueEdit

Definition at line 42 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and Reset().

CButton CHeadMotionTesterDlgBar::m_SendButton

Definition at line 40 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange().

CSliderCtrl CHeadMotionTesterDlgBar::m_TiltSlider

Definition at line 48 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange(), OnERS7Check(), OnHScroll(), and Reset().

CStatic CHeadMotionTesterDlgBar::m_TiltStatic

Definition at line 38 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange().

CEdit CHeadMotionTesterDlgBar::m_TiltValueEdit

Definition at line 39 of file HeadMotionTesterDlgBar.h.

Referenced by DoDataExchange(), OnHScroll(), and Reset().

CEdit CHeadMotionTesterDlgBar::m_zEdit

Definition at line 34 of file HeadMotionTesterDlgBar.h.

bool CHeadMotionTesterDlgBar::sendAllowed [protected]

Definition at line 67 of file HeadMotionTesterDlgBar.h.

Referenced by OnSend(), and Reset().


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