|
Output Offsets |
Corresponds to entries in ERS7Info::PrimitiveName, defined at the end of this file
|
| typedef unsigned int | LEDBitMask_t |
| enum | WheelOffset_t { LWheelOffset = WheelOffset,
RWheelOffset
} |
| enum | LEDOffset_t |
| | The offsets of the individual LEDs on the head and tail. Note that left/right are robot's point of view. See also LEDBitMask_t.
|
|
const unsigned | PIDJointOffset = 0 |
| | The beginning of the PID Joints.
|
| const unsigned | WheelOffset = PIDJointOffset |
| const unsigned | ArmOffset = WheelOffset+NumWheels |
|
const unsigned | LegOffset = ArmOffset+NumArmJoints |
| | the offset of the beginning of the leg joints, NumLegs of JointsPerLeg each, in LegOrder_t order; see LegOffset_t
|
|
const unsigned | HeadOffset = LegOffset+NumLegJoints |
| | the offset of the beginning of the head joints, add TPROffset_t to get specific joint
|
|
const unsigned | TailOffset = HeadOffset+NumHeadJoints |
| | the offset of the beginning of the tail joints, add TPROffset_t to get specific joint (except RollOffset not available)
|
|
const unsigned | MouthOffset = TailOffset+NumTailJoints |
| | the offset of the beginning of the mouth joint, is specific joint
|
|
const unsigned | LEDOffset = PIDJointOffset + NumPIDJoints |
| | the offset of LEDs in WorldState::outputs and MotionCommand functions, see LedOffset_t for specific offsets
|
|
const unsigned | BinJointOffset = LEDOffset + NumLEDs |
| | The beginning of the binary joints.
|
|
const unsigned | EarOffset = BinJointOffset |
| | the offset of the beginning of the ear joints - note that ears aren't sensed. They can be flicked by the environment and you won't know.
|
|
const unsigned | BaseFrameOffset = NumOutputs |
| | Use with kinematics to refer to base reference frame.
|
|
const unsigned | GripperFrameOffset = BaseFrameOffset+1 |
| | Use with kinematics to refer to paw reference frames (add appropriate LegOrder_t to specify which paw).
|
|
const unsigned | CameraFrameOffset = GripperFrameOffset+NumArms |
| | Use with kinematics to refer to camera reference frame.
|
|
const LEDBitMask_t | FaceLEDMask = 0 |
| | LEDs for the face panel (all FaceLEDPanelMask<<(0:NumFacePanelLEDs-1) entries).
|
|
const LEDBitMask_t | AllLEDMask = (LEDBitMask_t)~0 |
| | selects all of the leds
|
Input Offsets |
The order in which inputs should be stored
|
| enum | ButtonOffset_t |
| | holds offsets to different buttons in WorldState::buttons[] More...
|
| enum | SensorOffset_t |
| | holds offset to different sensor values in WorldState::sensors[] More...
|
|
const char *const | buttonNames [NumButtons] = { } |
| | Provides a string name for each button.
|
|
const char *const | sensorNames [NumSensors] = { } |
| | Provides a string name for each sensor.
|
Output Types Information |
|
const unsigned | NumWheels = 2 |
|
const unsigned | JointsPerArm = 1 |
|
const unsigned | NumArms = 0 |
|
const unsigned | NumArmJoints = JointsPerArm*NumArms |
|
const unsigned | JointsPerLeg = 0 |
| | The number of joints per leg.
|
|
const unsigned | NumLegs = 0 |
| | The number of legs.
|
|
const unsigned | NumLegJoints = JointsPerLeg*NumLegs |
| | the TOTAL number of joints on ALL legs
|
|
const unsigned | NumHeadJoints = 2 |
| | The number of joints in the neck.
|
|
const unsigned | NumTailJoints = 0 |
| | The number of joints assigned to the tail.
|
|
const unsigned | NumMouthJoints = 0 |
| | the number of joints that control the mouth
|
|
const unsigned | NumEarJoints = 0 |
| | The number of joints which control the ears (NOT per ear, is total).
|
|
const unsigned | NumButtons = 0 |
| | the number of buttons that are available, 2 head, 4 paws, 3 back, 1 underbelly see ERS7Info::ButtonOffset_t
|
|
const unsigned | NumSensors = 0 |
| | 3 IR (distance), 3 accel (force), 5 from power, see ERS7Info::SensorOffset_t
|
|
const unsigned | NumLEDs = 0 |
| | The number of LEDs which can be controlled.
|
|
const unsigned | NumFacePanelLEDs = 0 |
| | The number of face panel LEDs.
|
|
const unsigned | NumPIDJoints = NumWheels + NumArmJoints + NumLegJoints+NumHeadJoints+NumTailJoints+NumMouthJoints |
| | The number of joints which use PID motion - everything except ears.
|
|
const unsigned | NumBinJoints = NumEarJoints |
| | The number of binary joints - just the ears.
|
|
const unsigned | NumOutputs = NumPIDJoints + NumBinJoints + NumLEDs |
| | the total number of outputs
|
|
const unsigned | NumReferenceFrames = NumOutputs + 1 + NumArms + 1 |
| | for the base, gripper (* NumArms), and camera reference frames
|
|
const float | CameraHorizFOV = 56.9/180*M_PI |
| | horizontal field of view (radians)
|
|
const float | CameraVertFOV = 45.2/180*M_PI |
| | vertical field of view (radians)
|
|
const float | CameraFOV = CameraHorizFOV |
| | should be set to maximum of CameraHorizFOV or CameraVertFOV
|
|
const unsigned int | CameraResolutionX = 320 |
| | the number of pixels available in the 'full' layer
|
|
const unsigned int | CameraResolutionY = 240 |
| | the number of pixels available in the 'full' layer
|
Variables |
|
const char *const | RobotName = "Qwerk" |
| | the name of the model, to be used for logging and remote GUIs
|
|
const unsigned int | FrameTime = 15 |
| | time between frames in the motion system (milliseconds)
|
|
const unsigned int | NumFrames = 1 |
| | the number of frames per buffer (don't forget also double buffered)
|
|
const unsigned int | SlowFrameTime = 15 |
| | time between frames for the ears (ERS-7 doesn't seem to have any "slow" joints; this only applied for the ears on the ERS-210)
|
|
const unsigned int | NumSlowFrames = 1 |
| | the number of frames per buffer being sent to ears (double buffered as well)
|
|
const unsigned int | SoundBufferTime = 32 |
| | the number of milliseconds per sound buffer... I'm not sure if this can be changed
|
|
const unsigned | outputNameLen = 9 |
| | The length of the strings used for each of the outputs in outputNames (doesn't include null term).
|
| const char *const | outputNames [NumOutputs] |
| | A name of uniform length for referring to joints - handy for posture files, etc.
|
| const float | DefaultPIDs [NumPIDJoints][3] |
| | This table holds the default PID values for each joint. see PIDMC.
|
| const float | MaxOutputSpeed [NumOutputs] |
| | These values are our recommended maximum joint velocities, in rad/ms.
|
| const double | outputRanges [NumOutputs][2] |
| | This table holds the software limits of each of the outputs, first index is the output offset, second index is MinMaxRange_t (i.e. MinRange or MaxRange).
|
| const double | mechanicalLimits [NumOutputs][2] |
| | This table holds the mechanical limits of each of the outputs, first index is the output offset, second index is MinMaxRange_t (i.e. MinRange or MaxRange).
|