#include <SensorObserver.h>
Public Member Functions | |
SensorObserver () | |
virtual | ~SensorObserver () |
virtual OStatus | DoInit (const OSystemEvent &event) |
virtual OStatus | DoStart (const OSystemEvent &event) |
virtual OStatus | DoStop (const OSystemEvent &event) |
virtual OStatus | DoDestroy (const OSystemEvent &event) |
void | NotifyERS210 (const ONotifyEvent &event) |
void | NotifyERS220 (const ONotifyEvent &event) |
Public Attributes | |
OSubject * | subject [numOfSubject] |
OObserver * | observer [numOfObserver] |
Private Member Functions | |
void | InitCommonSensorIndex (OSensorFrameVectorData *sensorVec) |
void | InitERS210SensorIndex (OSensorFrameVectorData *sensorVec) |
void | InitERS220SensorIndex (OSensorFrameVectorData *sensorVec) |
void | PrintCommonSensor (OSensorFrameVectorData *sensorVec) |
void | PrintERS210Sensor (OSensorFrameVectorData *sensorVec) |
void | PrintERS220Sensor (OSensorFrameVectorData *sensorVec) |
void | PrintSensorValue (OSensorFrameVectorData *sensorVec, int index) |
void | PrintJointValue (OSensorFrameVectorData *sensorVec, int index) |
void | PrintSeparator () |
void | WaitReturnKey () |
Private Attributes | |
bool | initSensorIndex |
int | commonidx [NUM_COMMON_SENSORS] |
int | ers210idx [NUM_ERS210_SENSORS] |
int | ers220idx [NUM_ERS220_SENSORS] |
|
Definition at line 18 of file SensorObserver.cc. |
|
Definition at line 124 of file SensorObserver.h. |
|
Definition at line 52 of file SensorObserver.cc. |
|
Definition at line 26 of file SensorObserver.cc. |
|
Definition at line 36 of file SensorObserver.cc. |
|
Definition at line 44 of file SensorObserver.cc. |
|
Definition at line 101 of file SensorObserver.cc. References commonidx. Referenced by NotifyERS210(), and NotifyERS220(). |
|
Definition at line 129 of file SensorObserver.cc. References ers210idx. Referenced by NotifyERS210(). |
|
Definition at line 157 of file SensorObserver.cc. References ers220idx. Referenced by NotifyERS220(). |
|
Definition at line 59 of file SensorObserver.cc. References InitCommonSensorIndex(), InitERS210SensorIndex(), initSensorIndex, observer, PrintCommonSensor(), PrintERS210Sensor(), and WaitReturnKey(). |
|
Definition at line 80 of file SensorObserver.cc. References InitCommonSensorIndex(), InitERS220SensorIndex(), initSensorIndex, observer, PrintCommonSensor(), PrintERS220Sensor(), and WaitReturnKey(). |
|
Definition at line 185 of file SensorObserver.cc. References ACC_X, ACC_Y, ACC_Z, BACK_SW, commonidx, HEAD_PAN, HEAD_ROLL, HEAD_TILT, LFLEG_J1, LFLEG_J2, LFLEG_J3, LFLEG_SW, LRLEG_J1, LRLEG_J2, LRLEG_J3, LRLEG_SW, PrintJointValue(), PrintSensorValue(), PrintSeparator(), PSD, RFLEG_J1, RFLEG_J2, RFLEG_J3, RFLEG_SW, RRLEG_J1, RRLEG_J2, RRLEG_J3, RRLEG_SW, TACT_F, TACT_R, THERMO, and TIN_SW. Referenced by NotifyERS210(), and NotifyERS220(). |
|
Definition at line 297 of file SensorObserver.cc. References ers210idx, MOUTH, PrintJointValue(), TAIL_PAN, and TAIL_TILT. Referenced by NotifyERS210(). |
|
Definition at line 316 of file SensorObserver.cc. References ers220idx, PrintSensorValue(), TAIL_SW_L, TAIL_SW_M, and TAIL_SW_R. Referenced by NotifyERS220(). |
|
Definition at line 355 of file SensorObserver.cc. References PrintSeparator(). Referenced by PrintCommonSensor(), and PrintERS210Sensor(). |
|
Definition at line 332 of file SensorObserver.cc. References PrintSeparator(). Referenced by PrintCommonSensor(), and PrintERS220Sensor(). |
|
Definition at line 395 of file SensorObserver.cc. Referenced by PrintCommonSensor(), PrintJointValue(), and PrintSensorValue(). |
|
Definition at line 406 of file SensorObserver.cc. Referenced by NotifyERS210(), and NotifyERS220(). |
|
Definition at line 150 of file SensorObserver.h. Referenced by InitCommonSensorIndex(), PrintCommonSensor(), and SensorObserver(). |
|
Definition at line 151 of file SensorObserver.h. Referenced by InitERS210SensorIndex(), PrintERS210Sensor(), and SensorObserver(). |
|
Definition at line 152 of file SensorObserver.h. Referenced by InitERS220SensorIndex(), PrintERS220Sensor(), and SensorObserver(). |
|
Definition at line 149 of file SensorObserver.h. Referenced by NotifyERS210(), and NotifyERS220(). |
|
Definition at line 127 of file SensorObserver.h. Referenced by NotifyERS210(), and NotifyERS220(). |
|
Definition at line 126 of file SensorObserver.h. |