#include <MovingLegs.h>
Public Member Functions | |
MovingLegs () | |
virtual | ~MovingLegs () |
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 | NotifyCommand (const ONotifyEvent &event) |
void | ReadyMove (const OReadyEvent &event) |
MovingLegs () | |
virtual | ~MovingLegs () |
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 | Ready (const OReadyEvent &event) |
Public Attributes | |
OSubject * | subject [numOfSubject] |
OObserver * | observer [numOfObserver] |
OSubject * | subject [numOfSubject] |
OObserver * | observer [numOfObserver] |
Private Member Functions | |
void | OpenPrimitives () |
void | NewCommandVectorData () |
void | SetJointGain () |
MovingResult | AdjustDiffJointValue () |
MovingResult | MoveToBroadBase () |
MovingResult | MoveToSleeping () |
RCRegion * | FindFreeRegion () |
void | SetJointValue (RCRegion *rgn, int idx, double start, double end) |
void | OpenPrimitives () |
void | NewCommandVectorData () |
void | SetJointGain () |
MovingResult | AdjustDiffJointValue () |
MovingResult | MoveToBroadBase () |
MovingResult | MoveToSleeping () |
RCRegion * | FindFreeRegion () |
void | SetJointValue (RCRegion *rgn, int idx, double start, double end) |
Private Attributes | |
MovingLegsState | movingLegsState |
OPrimitiveID | jointID [NUM_JOINTS] |
RCRegion * | region [NUM_COMMAND_VECTOR] |
RCRegion * | region [NUM_COMMAND_VECTOR] |
Static Private Attributes | |
const size_t | NUM_JOINTS = 12 |
const size_t | NUM_COMMAND_VECTOR = 2 |
const word | J1_PGAIN = 0x0016 |
const word | J1_IGAIN = 0x0004 |
const word | J1_DGAIN = 0x0008 |
const word | J2_PGAIN = 0x0014 |
const word | J2_IGAIN = 0x0004 |
const word | J2_DGAIN = 0x0006 |
const word | J3_PGAIN = 0x0023 |
const word | J3_IGAIN = 0x0004 |
const word | J3_DGAIN = 0x0005 |
const word | PSHIFT = 0x000e |
const word | ISHIFT = 0x0002 |
const word | DSHIFT = 0x000f |
const int | BROADBASE_MAX_COUNTER = 48 |
const int | SLEEPING_MAX_COUNTER = 48 |
|
Definition at line 20 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. |
|
Definition at line 90 of file BallTrackingHead/MovingLegs2/MovingLegs.h. |
|
|
|
Definition at line 90 of file MovingLegs/MovingLegs/MovingLegs.h. |
|
|
|
Definition at line 219 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. References GetJointValue(), jointID, region, SetJointValue(), and subject. Referenced by NotifyCommand(), Ready(), and ReadyMove(). |
|
|
|
Definition at line 71 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. |
|
|
|
Definition at line 27 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. References NewCommandVectorData(), and OpenPrimitives(). |
|
|
|
Definition at line 47 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. |
|
|
|
Definition at line 58 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. References movingLegsState. |
|
|
|
Definition at line 311 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. References region. Referenced by MoveToBroadBase(), and MoveToSleeping(). |
|
|
|
Definition at line 238 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. References BROADBASE_ANGLE, FindFreeRegion(), GetJointValue(), jointID, MOVING_FINISH, SetJointValue(), and subject. Referenced by Ready(), and ReadyMove(). |
|
|
|
Definition at line 280 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. References BROADBASE_ANGLE, FindFreeRegion(), MOVING_FINISH, SetJointValue(), SLEEPING_ANGLE, and subject. Referenced by Ready(), and ReadyMove(). |
|
|
|
Definition at line 161 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. References jointID, NUM_JOINTS, and region. Referenced by DoInit(). |
|
Definition at line 78 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. References AdjustDiffJointValue(), BTH_INVALID_ARG, movingLegsState, observer, subject, and BallTrackingHeadCommand::type. |
|
|
|
Definition at line 148 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. References jointID. Referenced by DoInit(). |
|
Definition at line 82 of file MovingLegs/MovingLegs/MovingLegs.cc. References AdjustDiffJointValue(), MoveToBroadBase(), MoveToSleeping(), movingLegsState, MovingResult, and SetJointGain(). |
|
Definition at line 104 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. References AdjustDiffJointValue(), BTH_SUCCESS, MoveToBroadBase(), MoveToSleeping(), movingLegsState, MovingResult, SetJointGain(), and subject. |
|
|
|
Definition at line 193 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. References DSHIFT, ISHIFT, J1_DGAIN, J1_IGAIN, J1_PGAIN, J2_DGAIN, J2_IGAIN, J2_PGAIN, J3_DGAIN, J3_IGAIN, J3_PGAIN, jointID, and PSHIFT. Referenced by Ready(), and ReadyMove(). |
|
|
|
Definition at line 321 of file BallTrackingHead/MovingLegs2/MovingLegs.cc. References jointID. Referenced by AdjustDiffJointValue(), MoveToBroadBase(), and MoveToSleeping(). |
|
Definition at line 132 of file MovingLegs/MovingLegs/MovingLegs.h. |
|
Definition at line 130 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by SetJointGain(). |
|
Definition at line 129 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by SetJointGain(). |
|
Definition at line 118 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by SetJointGain(). |
|
Definition at line 117 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by SetJointGain(). |
|
Definition at line 116 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by SetJointGain(). |
|
Definition at line 122 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by SetJointGain(). |
|
Definition at line 121 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by SetJointGain(). |
|
Definition at line 120 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by SetJointGain(). |
|
Definition at line 126 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by SetJointGain(). |
|
Definition at line 125 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by SetJointGain(). |
|
Definition at line 124 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by SetJointGain(). |
|
Definition at line 136 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by AdjustDiffJointValue(), MoveToBroadBase(), MovingLegs(), NewCommandVectorData(), OpenPrimitives(), SetJointGain(), and SetJointValue(). |
|
Definition at line 135 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by DoStop(), NotifyCommand(), Ready(), and ReadyMove(). |
|
Definition at line 114 of file MovingLegs/MovingLegs/MovingLegs.h. |
|
Definition at line 113 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by NewCommandVectorData(). |
|
Definition at line 93 of file MovingLegs/MovingLegs/MovingLegs.h. |
|
Definition at line 93 of file BallTrackingHead/MovingLegs2/MovingLegs.h. Referenced by NotifyCommand(). |
|
Definition at line 128 of file MovingLegs/MovingLegs/MovingLegs.h. Referenced by SetJointGain(). |
|
Definition at line 137 of file MovingLegs/MovingLegs/MovingLegs.h. |
|
Definition at line 138 of file BallTrackingHead/MovingLegs2/MovingLegs.h. Referenced by AdjustDiffJointValue(), FindFreeRegion(), MovingLegs(), and NewCommandVectorData(). |
|
Definition at line 133 of file MovingLegs/MovingLegs/MovingLegs.h. |
|
Definition at line 92 of file MovingLegs/MovingLegs/MovingLegs.h. |
|
Definition at line 92 of file BallTrackingHead/MovingLegs2/MovingLegs.h. Referenced by AdjustDiffJointValue(), MoveToBroadBase(), MoveToSleeping(), NotifyCommand(), and ReadyMove(). |