#include <MofTesterDlgBar.h>
Inheritance diagram for CMofTesterDlgBar:
Public Types | |
IDD = IDD_DIALOG_BAR_MOFTESTER | |
enum | { IDD = IDD_DIALOG_BAR_MOFTESTER } |
Public Member Functions | |
CMofTesterDlgBar () | |
virtual bool | handleMessage (InMessage &message) |
virtual bool | handleCommand (UINT command) |
Public Attributes | |
CStatic | m_lines |
CStatic | m_static1 |
CButton | m_stopButton |
CEdit | m_mofEdit |
CButton | m_readButton |
CButton | m_loopCheck |
CButton | m_executeButton |
CButton | m_mirrorButton |
CButton | m_rawdataButton |
CButton | m_slowMoButton |
CEdit | m_slowMoEdit |
Protected Member Functions | |
virtual void | DoDataExchange (CDataExchange *pDX) |
virtual void | updateUI (CCmdUI *pCmdUI) |
virtual BOOL | OnInitDialog () |
afx_msg void | OnExecuteButton () |
afx_msg void | OnReadButton () |
afx_msg void | OnStopButton () |
afx_msg void | OnMirrorButton () |
afx_msg void | OnRawDataButton () |
afx_msg void | OnSlowMoButton () |
DECLARE_MESSAGE_MAP () | |
void | generateJointDataSequence (int slowFactor=1) |
void | sendSequence () |
Protected Attributes | |
JointDataSequence | jointDataSequence |
bool | waitForSensorData |
Definition at line 20 of file MofTesterDlgBar.h.
anonymous enum |
CMofTesterDlgBar::CMofTesterDlgBar | ( | ) |
Default constructor.
Definition at line 17 of file MofTesterDlgBar.cpp.
References waitForSensorData.
CMofTesterDlgBar::DECLARE_MESSAGE_MAP | ( | ) | [protected] |
Reimplemented from CDynamicBarDlg.
void CMofTesterDlgBar::DoDataExchange | ( | CDataExchange * | pDX | ) | [protected, virtual] |
Definition at line 26 of file MofTesterDlgBar.cpp.
References IDC_MOFTESTER_EXECUTE_BUTTON, IDC_MOFTESTER_LINES, IDC_MOFTESTER_LOOP, IDC_MOFTESTER_MIRROR_BUTTON, IDC_MOFTESTER_MOF_EDIT, IDC_MOFTESTER_RAWDATA_BUTTON, IDC_MOFTESTER_READ_BUTTON, IDC_MOFTESTER_SLOWMO_BUTTON, IDC_MOFTESTER_SLOWMO_EDIT, IDC_MOFTESTER_STATIC1, IDC_MOFTESTER_STOP_BUTTON, m_executeButton, m_lines, m_loopCheck, m_mirrorButton, m_mofEdit, m_rawdataButton, m_readButton, m_slowMoButton, m_slowMoEdit, m_static1, and m_stopButton.
void CMofTesterDlgBar::generateJointDataSequence | ( | int | slowFactor = 1 |
) | [protected] |
Definition at line 303 of file MofTesterDlgBar.cpp.
References d, JointDataSequence::entry, JointData::headPan, JointData::headTilt, JointDataSequence::interpolate, jointDataInvalidValue, jointDataSequence, jointDataSequenceMaxNumOfEntries, JointData::legFL1, JointData::legFL2, JointData::legFL3, JointData::legFR1, JointData::legFR2, JointData::legFR3, JointData::legHL1, JointData::legHL2, JointData::legHL3, JointData::legHR1, JointData::legHR2, JointData::legHR3, JointDataSequence::loop, m_lines, m_loopCheck, m_mofEdit, JointData::mouth, JointData::neckTilt, JointDataSequence::numOfEntries, JointDataSequence::repeats, JointData::tailPan, and JointData::tailTilt.
Referenced by OnExecuteButton(), OnMirrorButton(), OnRawDataButton(), and OnSlowMoButton().
bool CMofTesterDlgBar::handleCommand | ( | UINT | command | ) | [virtual] |
Handles control notifications which arrived in the main frame
command | The id of the control, menu, accelerator etc. |
Reimplemented from CRobotControlDialogBar.
Definition at line 394 of file MofTesterDlgBar.cpp.
References OutMessage::bin, InFile::exists(), OutMessage::finishMessage(), getQueues(), IDC_SEND_MOTION_NET, idMotionNet, idText, MessageQueue::out, InStream< S, R >::read(), CRobotControlQueuesToRobots::selectedRobot, OutMessage::text, CRobotControlQueues::toGUI, CRobotControlQueues::toPhysical, CRobotControlQueues::toSimulated, and OutStream< S, W >::write().
bool CMofTesterDlgBar::handleMessage | ( | InMessage & | message | ) | [virtual] |
Called from a MessageQueue to distribute messages
message | The message that can be read. |
Reimplemented from CRobotControlDialogBar.
Definition at line 265 of file MofTesterDlgBar.cpp.
References InMessage::bin, InMessage::getMessageID(), SensorData::headPan, SensorData::headTilt, idSensorData, SensorData::legFL1, SensorData::legFL2, SensorData::legFL3, SensorData::legFR1, SensorData::legFR2, SensorData::legFR3, SensorData::legHL1, SensorData::legHL2, SensorData::legHL3, SensorData::legHR1, SensorData::legHR2, SensorData::legHR3, m_mofEdit, SensorData::neckTilt, and waitForSensorData.
void CMofTesterDlgBar::OnExecuteButton | ( | ) | [protected] |
Definition at line 78 of file MofTesterDlgBar.cpp.
References generateJointDataSequence(), and sendSequence().
BOOL CMofTesterDlgBar::OnInitDialog | ( | ) | [protected, virtual] |
Reimplemented from CDynamicDialog.
Definition at line 56 of file MofTesterDlgBar.cpp.
References CDynamicDialog::OnInitDialog(), and TRUE.
void CMofTesterDlgBar::OnMirrorButton | ( | ) | [protected] |
Definition at line 107 of file MofTesterDlgBar.cpp.
References JointData::data, JointDataSequence::entry, generateJointDataSequence(), JointData::headPan, JointData::headTilt, JointDataSequence::interpolate, jointDataInvalidValue, jointDataSequence, JointData::legFL1, JointData::legFL2, JointData::legFL3, JointData::legFR1, JointData::legFR2, JointData::legFR3, JointData::legHL1, JointData::legHL2, JointData::legHL3, JointData::legHR1, JointData::legHR2, JointData::legHR3, m_mofEdit, JointData::mouth, JointData::neckTilt, JointDataSequence::numOfEntries, JointDataSequence::repeats, JointData::tailPan, and JointData::tailTilt.
void CMofTesterDlgBar::OnRawDataButton | ( | ) | [protected] |
Definition at line 158 of file MofTesterDlgBar.cpp.
References JointData::data, JointDataSequence::entry, generateJointDataSequence(), JointData::headPan, JointData::headTilt, JointDataSequence::interpolate, jointDataInvalidValue, jointDataSequence, JointData::legFL1, JointData::legFL2, JointData::legFL3, JointData::legFR1, JointData::legFR2, JointData::legFR3, JointData::legHL1, JointData::legHL2, JointData::legHL3, JointData::legHR1, JointData::legHR2, JointData::legHR3, JointDataSequence::loop, m_mofEdit, JointData::neckTilt, JointDataSequence::numOfEntries, and JointDataSequence::repeats.
void CMofTesterDlgBar::OnReadButton | ( | ) | [protected] |
Definition at line 93 of file MofTesterDlgBar.cpp.
References CRobotControlDebugKeyTables::forPhysicalRobots, getDebugKeyTables(), DebugKey::n_times, CRobotControlDebugKeyTables::sendForPhysicalRobots(), DebugKeyTable::sendSensorData, DebugKeyTable::set(), and waitForSensorData.
void CMofTesterDlgBar::OnSlowMoButton | ( | ) | [protected] |
Definition at line 84 of file MofTesterDlgBar.cpp.
References generateJointDataSequence(), m_slowMoEdit, and sendSequence().
void CMofTesterDlgBar::OnStopButton | ( | ) | [protected] |
Definition at line 101 of file MofTesterDlgBar.cpp.
References jointDataSequence, JointDataSequence::numOfEntries, and sendSequence().
void CMofTesterDlgBar::sendSequence | ( | ) | [protected] |
Definition at line 367 of file MofTesterDlgBar.cpp.
References OutMessage::bin, OutMessage::finishMessage(), getQueues(), idJointDataSequence, jointDataSequence, MessageQueue::out, CRobotControlQueuesToRobots::selectedRobot, CRobotControlQueues::toPhysical, and CRobotControlQueues::toSimulated.
Referenced by OnExecuteButton(), OnSlowMoButton(), and OnStopButton().
void CMofTesterDlgBar::updateUI | ( | CCmdUI * | pCmdUI | ) | [protected, virtual] |
Enables the controls in the dialog bar. This function is called from the main window for all controls.
pCmdUI | An interface to the control that allows enabling/disabling, checking etc. |
Reimplemented from CRobotControlDialogBar.
Definition at line 376 of file MofTesterDlgBar.cpp.
References IDC_MOFTESTER_EXECUTE_BUTTON, IDC_MOFTESTER_LOOP, and m_mofEdit.
JointDataSequence CMofTesterDlgBar::jointDataSequence [protected] |
Definition at line 87 of file MofTesterDlgBar.h.
Referenced by generateJointDataSequence(), OnMirrorButton(), OnRawDataButton(), OnStopButton(), and sendSequence().
CStatic CMofTesterDlgBar::m_lines |
Definition at line 28 of file MofTesterDlgBar.h.
Referenced by DoDataExchange(), and generateJointDataSequence().
CButton CMofTesterDlgBar::m_loopCheck |
Definition at line 33 of file MofTesterDlgBar.h.
Referenced by DoDataExchange(), and generateJointDataSequence().
CButton CMofTesterDlgBar::m_mirrorButton |
Definition at line 31 of file MofTesterDlgBar.h.
Referenced by DoDataExchange(), generateJointDataSequence(), handleMessage(), OnMirrorButton(), OnRawDataButton(), and updateUI().
CButton CMofTesterDlgBar::m_readButton |
CButton CMofTesterDlgBar::m_slowMoButton |
Definition at line 38 of file MofTesterDlgBar.h.
Referenced by DoDataExchange(), and OnSlowMoButton().
CStatic CMofTesterDlgBar::m_static1 |
CButton CMofTesterDlgBar::m_stopButton |
bool CMofTesterDlgBar::waitForSensorData [protected] |
Definition at line 89 of file MofTesterDlgBar.h.
Referenced by CMofTesterDlgBar(), handleMessage(), and OnReadButton().