Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

CommonCalliopeInfo.h File Reference

#include <cmath>
#include <stdlib.h>
#include "CommonInfo.h"
Include dependency graph for CommonCalliopeInfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CommonCalliopeInfo
 

Contains information about a Calliope robot, such as number of joints, LEDs, etc.


namespace  CommonCalliopeInfo::WithoutAXS1Sensors
namespace  CommonCalliopeInfo::WithAXS1Sensors
namespace  CommonCalliopeInfo::WithHead
namespace  CommonCalliopeInfo::CalliopeInfo
namespace  CommonCalliopeInfo::Calliope0
namespace  CommonCalliopeInfo::Calliope2
namespace  CommonCalliopeInfo::Calliope5
namespace  CommonCalliopeInfo::Calliope5::WithoutAXS1Sensors
namespace  CommonCalliopeInfo::Calliope5::WithAXS1Sensors

Defines

#define TGT_IS_CALLIOPE
#define TGT_IS_CALLIOPE2
#define TGT_IS_CREATE
#define TGT_HAS_WHEELS   2
#define TGT_HAS_BUTTONS   15
#define TGT_HAS_LEDS   4
#define TGT_HAS_CAMERA   1
#define TGT_HAS_HEAD   1
#define TGT_HAS_ARMS   1
#define TGT_HAS_GRIPPER   1
#define TGT_HAS_ARMS   1
#define TGT_HAS_GRIPPER   1
#define TGT_HAS_FINGERS   2
#define TGT_HAS_IR_DISTANCE   3
#define RAD(deg)   (((deg) * (float)M_PI ) / 180.0f)
 Just a little macro for converting degrees to radians.
#define __RI_RAD_FLAG
 a flag so we undef these after we're done - do you have a cleaner solution?

Typedefs

typedef unsigned int CommonCalliopeInfo::CalliopeInfo::LEDBitMask_t
 So you can be clear when you're refering to a LED bitmask.
typedef unsigned int CommonCalliopeInfo::Calliope0::LEDBitMask_t
 So you can be clear when you're refering to a LED bitmask.
typedef unsigned int CommonCalliopeInfo::Calliope2::LEDBitMask_t
 So you can be clear when you're refering to a LED bitmask.
typedef unsigned int CommonCalliopeInfo::Calliope5::LEDBitMask_t
 So you can be clear when you're refering to a LED bitmask.

Enumerations

enum  CommonCalliopeInfo::WithAXS1Sensors::AXS1SensorOffset_t {
  CommonCalliopeInfo::WithAXS1Sensors::LeftIRDistOffset = GPSHeadingOffset+1, CommonCalliopeInfo::WithAXS1Sensors::CenterIRDistOffset, CommonCalliopeInfo::WithAXS1Sensors::IRDistOffset = CenterIRDistOffset, CommonCalliopeInfo::WithAXS1Sensors::RightIRDistOffset,
  CommonCalliopeInfo::WithAXS1Sensors::LeftLuminosityOffset, CommonCalliopeInfo::WithAXS1Sensors::CenterLuminosityOffset, CommonCalliopeInfo::WithAXS1Sensors::RightLuminosityOffset, CommonCalliopeInfo::WithAXS1Sensors::MicVolumeOffset,
  CommonCalliopeInfo::WithAXS1Sensors::MicSpikeCountOffset
}
enum  CommonCalliopeInfo::WithHead::TPROffset_t { CommonCalliopeInfo::WithHead::PanOffset = 0, CommonCalliopeInfo::WithHead::TiltOffset, CommonCalliopeInfo::WithHead::NodOffset = TiltOffset }
 

The offsets of appendages with pan (heading), tilt (elevation), note that this should be added to HeadOffset, otherwise use HeadOffset_t (HeadPanOffset and HeadTiltOffset).

More...
enum  CommonCalliopeInfo::WithHead::HeadOffset_t { CommonCalliopeInfo::WithHead::HeadPanOffset = HeadOffset, CommonCalliopeInfo::WithHead::HeadTiltOffset }
 

These are 'absolute' offsets for the neck joints, don't need to add to HeadOffset like TPROffset_t values do.

More...
enum  CommonCalliopeInfo::CalliopeInfo::LEDOffset_t { CommonCalliopeInfo::CalliopeInfo::PowerRedLEDOffset = LEDOffset, CommonCalliopeInfo::CalliopeInfo::PowerGreenLEDOffset, CommonCalliopeInfo::CalliopeInfo::PlayLEDOffset, CommonCalliopeInfo::CalliopeInfo::AdvanceLEDOffset }
 

The offsets of the individual LEDs.

More...
enum  CommonCalliopeInfo::Calliope0::LEDOffset_t { CommonCalliopeInfo::Calliope0::PowerRedLEDOffset = LEDOffset, CommonCalliopeInfo::Calliope0::PowerGreenLEDOffset, CommonCalliopeInfo::Calliope0::PlayLEDOffset, CommonCalliopeInfo::Calliope0::AdvanceLEDOffset }
 

The offsets of the individual LEDs.

More...
enum  CommonCalliopeInfo::Calliope2::ArmOffset_t { CommonCalliopeInfo::Calliope2::ArmBaseOffset = ArmOffset, CommonCalliopeInfo::Calliope2::ArmShoulderOffset, CommonCalliopeInfo::Calliope2::GripperOffset }
 

These are 'absolute' offsets for the arm joints, don't need to add to ArmOffset like TPROffset_t values do.

More...
enum  CommonCalliopeInfo::Calliope2::LEDOffset_t { CommonCalliopeInfo::Calliope2::PowerRedLEDOffset = LEDOffset, CommonCalliopeInfo::Calliope2::PowerGreenLEDOffset, CommonCalliopeInfo::Calliope2::PlayLEDOffset, CommonCalliopeInfo::Calliope2::AdvanceLEDOffset }
 

The offsets of the individual LEDs.

More...
enum  CommonCalliopeInfo::Calliope5::ArmOffset_t {
  CommonCalliopeInfo::Calliope5::ArmBaseOffset = ArmOffset, CommonCalliopeInfo::Calliope5::ArmShoulderOffset, CommonCalliopeInfo::Calliope5::ArmElbowOffset, CommonCalliopeInfo::Calliope5::ArmWristOffset,
  CommonCalliopeInfo::Calliope5::WristRotateOffset, CommonCalliopeInfo::Calliope5::LeftFingerOffset, CommonCalliopeInfo::Calliope5::RightFingerOffset
}
 

These are 'absolute' offsets for the arm joints, don't need to add to ArmOffset like TPROffset_t values do.

More...
enum  CommonCalliopeInfo::Calliope5::LEDOffset_t { CommonCalliopeInfo::Calliope5::PowerRedLEDOffset = LEDOffset, CommonCalliopeInfo::Calliope5::PowerGreenLEDOffset, CommonCalliopeInfo::Calliope5::PlayLEDOffset, CommonCalliopeInfo::Calliope5::AdvanceLEDOffset }
 

The offsets of the individual LEDs.

More...

Variables

const unsigned int CommonCalliopeInfo::FrameTime = 30
 time between frames in the motion system (milliseconds)
const unsigned int CommonCalliopeInfo::NumFrames = 1
 the number of frames per buffer (don't forget also double buffered)
const unsigned int CommonCalliopeInfo::SoundBufferTime = 32
 the number of milliseconds per sound buffer... I'm not sure if this can be changed
const unsigned CommonCalliopeInfo::WithoutAXS1Sensors::NumSensors = 22
 the number of sensors available: 19 Create
const char *const CommonCalliopeInfo::WithoutAXS1Sensors::sensorNames [NumSensors+1]
 Provides a string name for each sensor.
const unsigned CommonCalliopeInfo::WithAXS1Sensors::NumSensors = WithoutAXS1Sensors::NumSensors+3+3+2
 the number of sensors available: 19 Create plus 3 IR, 3 luminosity, 2 mic from AX-S1
const char *const CommonCalliopeInfo::WithAXS1Sensors::sensorNames [NumSensors+1]
 Provides a string name for each sensor.
const unsigned CommonCalliopeInfo::WithHead::NumHeadJoints = 2
 The number of joints in the pan/tilt.
const unsigned CommonCalliopeInfo::WithHead::HeadOffset = WheelOffset+NumWheels
 the offset of the beginning of the head joints, add TPROffset_t to get specific joint
const unsigned CommonCalliopeInfo::CalliopeInfo::FingerJointsPerArm = 0
const unsigned CommonCalliopeInfo::CalliopeInfo::JointsPerArm = 0
const unsigned CommonCalliopeInfo::CalliopeInfo::NumArms = 0
const unsigned CommonCalliopeInfo::CalliopeInfo::NumArmJoints = JointsPerArm*NumArms
const unsigned CommonCalliopeInfo::CalliopeInfo::NumHeadJoints = 0
const unsigned CommonCalliopeInfo::CalliopeInfo::NumPIDJoints = NumWheels + NumHeadJoints + NumArmJoints
 number of motors and servos
const unsigned CommonCalliopeInfo::CalliopeInfo::NumOutputs = NumPIDJoints + NumLEDs + 1
 the total number of outputs
const unsigned CommonCalliopeInfo::CalliopeInfo::LEDOffset = WheelOffset+NumWheels
const unsigned CommonCalliopeInfo::CalliopeInfo::ModeOffset = LEDOffset + NumLEDs
const unsigned CommonCalliopeInfo::CalliopeInfo::BaseFrameOffset = NumOutputs
 Use with kinematics to refer to base reference frame.
const unsigned CommonCalliopeInfo::CalliopeInfo::CameraFrameOffset = BaseFrameOffset+1
 Use with kinematics to refer to camera reference frame.
const LEDOffset_t CommonCalliopeInfo::CalliopeInfo::RedLEDOffset = PowerRedLEDOffset
const LEDOffset_t CommonCalliopeInfo::CalliopeInfo::BlueLEDOffset = AdvanceLEDOffset
 Create has no blue LED: use Advance LED here, and Advance+PowerRED in BlueLEDMask.
const LEDOffset_t CommonCalliopeInfo::CalliopeInfo::GreenLEDOffset = PlayLEDOffset
const LEDOffset_t CommonCalliopeInfo::CalliopeInfo::YellowLEDOffset = AdvanceLEDOffset
const LEDBitMask_t CommonCalliopeInfo::CalliopeInfo::BlueLEDMask
 Create has no blue LED, so use Advance (green) + Power (red).
const LEDBitMask_t CommonCalliopeInfo::CalliopeInfo::GreenLEDMask = 1<<(GreenLEDOffset-LEDOffset)
 mask corresponding to GreenLEDOffset
const LEDBitMask_t CommonCalliopeInfo::CalliopeInfo::YellowLEDMask = 1<<(YellowLEDOffset-LEDOffset)
 mask corresponding to YellowLEDOffset
const LEDBitMask_t CommonCalliopeInfo::CalliopeInfo::RedLEDMask = 1<<(RedLEDOffset-LEDOffset)
 mask corresponding to RedLEDOffset
const LEDBitMask_t CommonCalliopeInfo::CalliopeInfo::PowerRedLEDMask = 1<<(PowerRedLEDOffset-LEDOffset)
 mask corresponding to BlueLEDOffset
const LEDBitMask_t CommonCalliopeInfo::CalliopeInfo::PowerGreenLEDMask = 1<<(PowerGreenLEDOffset-LEDOffset)
 mask corresponding to GreenLEDOffset
const LEDBitMask_t CommonCalliopeInfo::CalliopeInfo::PlayLEDMask = 1<<(PlayLEDOffset-LEDOffset)
 mask corresponding to YellowLEDOffset
const LEDBitMask_t CommonCalliopeInfo::CalliopeInfo::AdvanceLEDMask = 1<<(AdvanceLEDOffset-LEDOffset)
 mask corresponding to RedLEDOffset
const LEDBitMask_t CommonCalliopeInfo::CalliopeInfo::FaceLEDMask = 0
 LEDs for the face panel (all FaceLEDPanelMask<<(0:NumFacePanelLEDs-1) entries).
const LEDBitMask_t CommonCalliopeInfo::CalliopeInfo::AllLEDMask = (LEDBitMask_t)~0
 selects all of the leds
const float CommonCalliopeInfo::CalliopeInfo::DefaultPIDs [NumPIDJoints][3]
 This table holds the default PID values for each joint. see PIDMC.
const float CommonCalliopeInfo::CalliopeInfo::MaxOutputSpeed [NumOutputs]
 These values are our recommended maximum joint velocities, in rad/ms.
const float CommonCalliopeInfo::CalliopeInfo::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 unsigned CommonCalliopeInfo::Calliope0::FingerJointsPerArm = 0
const unsigned CommonCalliopeInfo::Calliope0::JointsPerArm = 0
const unsigned CommonCalliopeInfo::Calliope0::NumArms = 0
const unsigned CommonCalliopeInfo::Calliope0::NumArmJoints = JointsPerArm*NumArms
const unsigned CommonCalliopeInfo::Calliope0::NumPIDJoints = NumWheels + NumHeadJoints + NumArmJoints
 number of motors and servos
const unsigned CommonCalliopeInfo::Calliope0::NumOutputs = NumPIDJoints + NumLEDs + 1
 the total number of outputs
const unsigned CommonCalliopeInfo::Calliope0::LEDOffset = WheelOffset+NumWheels
const unsigned CommonCalliopeInfo::Calliope0::ModeOffset = LEDOffset + NumLEDs
const unsigned CommonCalliopeInfo::Calliope0::BaseFrameOffset = NumOutputs
 Use with kinematics to refer to base reference frame.
const unsigned CommonCalliopeInfo::Calliope0::CameraFrameOffset = BaseFrameOffset+1
 Use with kinematics to refer to camera reference frame.
const unsigned CommonCalliopeInfo::Calliope0::LeftIRFrameOffset = CameraFrameOffset+1
 Use with kinematics to refer to left IR distance rangefinder reference frame.
const unsigned CommonCalliopeInfo::Calliope0::CenterIRFrameOffset = LeftIRFrameOffset+1
 Use with kinematics to refer to center IR distance rangefinder reference frame.
const unsigned CommonCalliopeInfo::Calliope0::IRFrameOffset = CenterIRFrameOffset
 alias for CenterIRFrameOffset
const unsigned CommonCalliopeInfo::Calliope0::RightIRFrameOffset = CenterIRFrameOffset+1
 Use with kinematics to refer to right IR distance rangefinder reference frame.
const LEDOffset_t CommonCalliopeInfo::Calliope0::RedLEDOffset = PowerRedLEDOffset
const LEDOffset_t CommonCalliopeInfo::Calliope0::BlueLEDOffset = AdvanceLEDOffset
 Create has no blue LED: use Advance LED here, and Advance+PowerRED in BlueLEDMask.
const LEDOffset_t CommonCalliopeInfo::Calliope0::GreenLEDOffset = PlayLEDOffset
const LEDOffset_t CommonCalliopeInfo::Calliope0::YellowLEDOffset = AdvanceLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope0::BlueLEDMask
 Create has no blue LED, so use Advance (green) + Power (red).
const LEDBitMask_t CommonCalliopeInfo::Calliope0::GreenLEDMask = 1<<(GreenLEDOffset-LEDOffset)
 mask corresponding to GreenLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope0::YellowLEDMask = 1<<(YellowLEDOffset-LEDOffset)
 mask corresponding to YellowLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope0::RedLEDMask = 1<<(RedLEDOffset-LEDOffset)
 mask corresponding to RedLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope0::PowerRedLEDMask = 1<<(PowerRedLEDOffset-LEDOffset)
 mask corresponding to BlueLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope0::PowerGreenLEDMask = 1<<(PowerGreenLEDOffset-LEDOffset)
 mask corresponding to GreenLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope0::PlayLEDMask = 1<<(PlayLEDOffset-LEDOffset)
 mask corresponding to YellowLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope0::AdvanceLEDMask = 1<<(AdvanceLEDOffset-LEDOffset)
 mask corresponding to RedLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope0::FaceLEDMask = 0
 LEDs for the face panel (all FaceLEDPanelMask<<(0:NumFacePanelLEDs-1) entries).
const LEDBitMask_t CommonCalliopeInfo::Calliope0::AllLEDMask = (LEDBitMask_t)~0
 selects all of the leds
const float CommonCalliopeInfo::Calliope0::DefaultPIDs [NumPIDJoints][3]
 This table holds the default PID values for each joint. see PIDMC.
const float CommonCalliopeInfo::Calliope0::MaxOutputSpeed [NumOutputs]
 These values are our recommended maximum joint velocities, in rad/ms.
const float CommonCalliopeInfo::Calliope0::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 unsigned CommonCalliopeInfo::Calliope2::FingerJointsPerArm = 1
const unsigned CommonCalliopeInfo::Calliope2::JointsPerArm = 3
 2 arm joints plus gripper
const unsigned CommonCalliopeInfo::Calliope2::NumArms = 1
const unsigned CommonCalliopeInfo::Calliope2::NumArmJoints = JointsPerArm*NumArms
const unsigned CommonCalliopeInfo::Calliope2::NumPIDJoints = NumWheels + NumHeadJoints + NumArmJoints
 number of motors and servos
const unsigned CommonCalliopeInfo::Calliope2::NumOutputs = NumPIDJoints + NumLEDs + 1
 the total number of outputs
const unsigned CommonCalliopeInfo::Calliope2::ArmOffset = HeadOffset+NumHeadJoints
const unsigned CommonCalliopeInfo::Calliope2::LEDOffset = ArmOffset+NumArmJoints
const unsigned CommonCalliopeInfo::Calliope2::ModeOffset = LEDOffset + NumLEDs
const unsigned CommonCalliopeInfo::Calliope2::BaseFrameOffset = NumOutputs
 Use with kinematics to refer to base reference frame.
const unsigned CommonCalliopeInfo::Calliope2::GripperFrameOffset = BaseFrameOffset + 1
 Use with kinematics to refer to gripper reference frame.
const unsigned CommonCalliopeInfo::Calliope2::CameraFrameOffset = GripperFrameOffset+NumArms
 Use with kinematics to refer to camera reference frame.
const unsigned CommonCalliopeInfo::Calliope2::LeftIRFrameOffset = CameraFrameOffset+1
 Use with kinematics to refer to left IR distance rangefinder reference frame.
const unsigned CommonCalliopeInfo::Calliope2::CenterIRFrameOffset = LeftIRFrameOffset+1
 Use with kinematics to refer to center IR distance rangefinder reference frame.
const unsigned CommonCalliopeInfo::Calliope2::IRFrameOffset = CenterIRFrameOffset
 alias for CenterIRFrameOffset
const unsigned CommonCalliopeInfo::Calliope2::RightIRFrameOffset = CenterIRFrameOffset+1
 Use with kinematics to refer to right IR distance rangefinder reference frame.
const LEDOffset_t CommonCalliopeInfo::Calliope2::RedLEDOffset = PowerRedLEDOffset
const LEDOffset_t CommonCalliopeInfo::Calliope2::BlueLEDOffset = AdvanceLEDOffset
 Create has no blue LED: use Advance LED here, and Advance+PowerRED in BlueLEDMask.
const LEDOffset_t CommonCalliopeInfo::Calliope2::GreenLEDOffset = PlayLEDOffset
const LEDOffset_t CommonCalliopeInfo::Calliope2::YellowLEDOffset = AdvanceLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope2::BlueLEDMask
 Create has no blue LED, so use Advance (green) + Power (red).
const LEDBitMask_t CommonCalliopeInfo::Calliope2::GreenLEDMask = 1<<(GreenLEDOffset-LEDOffset)
 mask corresponding to GreenLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope2::YellowLEDMask = 1<<(YellowLEDOffset-LEDOffset)
 mask corresponding to YellowLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope2::RedLEDMask = 1<<(RedLEDOffset-LEDOffset)
 mask corresponding to RedLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope2::PowerRedLEDMask = 1<<(PowerRedLEDOffset-LEDOffset)
 mask corresponding to BlueLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope2::PowerGreenLEDMask = 1<<(PowerGreenLEDOffset-LEDOffset)
 mask corresponding to GreenLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope2::PlayLEDMask = 1<<(PlayLEDOffset-LEDOffset)
 mask corresponding to YellowLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope2::AdvanceLEDMask = 1<<(AdvanceLEDOffset-LEDOffset)
 mask corresponding to RedLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope2::FaceLEDMask = 0
 LEDs for the face panel (all FaceLEDPanelMask<<(0:NumFacePanelLEDs-1) entries).
const LEDBitMask_t CommonCalliopeInfo::Calliope2::AllLEDMask = (LEDBitMask_t)~0
 selects all of the leds
const float CommonCalliopeInfo::Calliope2::DefaultPIDs [NumPIDJoints][3]
 This table holds the default PID values for each joint. see PIDMC.
const float CommonCalliopeInfo::Calliope2::MaxOutputSpeed [NumOutputs]
 These values are our recommended maximum joint velocities, in rad/ms.
const float CommonCalliopeInfo::Calliope2::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 unsigned CommonCalliopeInfo::Calliope5::FingerJointsPerArm = 2
const unsigned CommonCalliopeInfo::Calliope5::JointsPerArm = 7
 5 arms joints plus two fingers
const unsigned CommonCalliopeInfo::Calliope5::NumArms = 1
const unsigned CommonCalliopeInfo::Calliope5::NumArmJoints = JointsPerArm*NumArms
const unsigned CommonCalliopeInfo::Calliope5::NumPIDJoints = NumWheels + NumHeadJoints + NumArmJoints
 number of motors and servos
const unsigned CommonCalliopeInfo::Calliope5::NumOutputs = NumPIDJoints + NumLEDs + 1
 the total number of outputs
const unsigned CommonCalliopeInfo::Calliope5::ArmOffset = HeadOffset+NumHeadJoints
const unsigned CommonCalliopeInfo::Calliope5::LEDOffset = ArmOffset+NumArmJoints
const unsigned CommonCalliopeInfo::Calliope5::ModeOffset = LEDOffset + NumLEDs
const unsigned CommonCalliopeInfo::Calliope5::BaseFrameOffset = NumOutputs
 Use with kinematics to refer to base reference frame.
const unsigned CommonCalliopeInfo::Calliope5::GripperFrameOffset = BaseFrameOffset + 1
 Use with kinematics to refer to gripper reference frame.
const unsigned CommonCalliopeInfo::Calliope5::LeftFingerFrameOffset = GripperFrameOffset+1
 Use with kinematics to refer to the left finger reference frame.
const unsigned CommonCalliopeInfo::Calliope5::RightFingerFrameOffset = LeftFingerFrameOffset+1
 Use with kinematics to refer to the right finger reference frame.
const unsigned CommonCalliopeInfo::Calliope5::CameraFrameOffset = RightFingerFrameOffset+NumArms
 Use with kinematics to refer to camera reference frame.
const unsigned CommonCalliopeInfo::Calliope5::WithAXS1Sensors::LeftIRFrameOffset = CameraFrameOffset+1
 Use with kinematics to refer to left IR distance rangefinder reference frame.
const unsigned CommonCalliopeInfo::Calliope5::WithAXS1Sensors::CenterIRFrameOffset = LeftIRFrameOffset+1
 Use with kinematics to refer to center IR distance rangefinder reference frame.
const unsigned CommonCalliopeInfo::Calliope5::WithAXS1Sensors::IRFrameOffset = CenterIRFrameOffset
 alias for CenterIRFrameOffset
const unsigned CommonCalliopeInfo::Calliope5::WithAXS1Sensors::RightIRFrameOffset = CenterIRFrameOffset+1
 Use with kinematics to refer to right IR distance rangefinder reference frame.
const LEDOffset_t CommonCalliopeInfo::Calliope5::RedLEDOffset = PowerRedLEDOffset
const LEDOffset_t CommonCalliopeInfo::Calliope5::BlueLEDOffset = AdvanceLEDOffset
 Create has no blue LED: use Advance LED here, and Advance+PowerRED in BlueLEDMask.
const LEDOffset_t CommonCalliopeInfo::Calliope5::GreenLEDOffset = PlayLEDOffset
const LEDOffset_t CommonCalliopeInfo::Calliope5::YellowLEDOffset = AdvanceLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope5::BlueLEDMask
 Create has no blue LED, so use Advance (green) + Power (red).
const LEDBitMask_t CommonCalliopeInfo::Calliope5::GreenLEDMask = 1<<(GreenLEDOffset-LEDOffset)
 mask corresponding to GreenLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope5::YellowLEDMask = 1<<(YellowLEDOffset-LEDOffset)
 mask corresponding to YellowLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope5::RedLEDMask = 1<<(RedLEDOffset-LEDOffset)
 mask corresponding to RedLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope5::PowerRedLEDMask = 1<<(PowerRedLEDOffset-LEDOffset)
 mask corresponding to BlueLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope5::PowerGreenLEDMask = 1<<(PowerGreenLEDOffset-LEDOffset)
 mask corresponding to GreenLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope5::PlayLEDMask = 1<<(PlayLEDOffset-LEDOffset)
 mask corresponding to YellowLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope5::AdvanceLEDMask = 1<<(AdvanceLEDOffset-LEDOffset)
 mask corresponding to RedLEDOffset
const LEDBitMask_t CommonCalliopeInfo::Calliope5::FaceLEDMask = 0
 LEDs for the face panel (all FaceLEDPanelMask<<(0:NumFacePanelLEDs-1) entries).
const LEDBitMask_t CommonCalliopeInfo::Calliope5::AllLEDMask = (LEDBitMask_t)~0
 selects all of the leds
const float CommonCalliopeInfo::Calliope5::DefaultPIDs [NumPIDJoints][3]
 This table holds the default PID values for each joint. see PIDMC.
const float CommonCalliopeInfo::Calliope5::MaxOutputSpeed [NumOutputs]
 These values are our recommended maximum joint velocities, in rad/s.
const float CommonCalliopeInfo::Calliope5::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).
Output Types Information

const unsigned CommonCalliopeInfo::NumWheels = 2
 The number of joints per leg.
const unsigned CommonCalliopeInfo::JointsPerLeg = 0
 The number of joints per leg.
const unsigned CommonCalliopeInfo::NumLegs = 0
 The number of legs.
const unsigned CommonCalliopeInfo::NumLegJoints = JointsPerLeg*NumLegs
 the TOTAL number of joints on ALL legs
const unsigned CommonCalliopeInfo::NumTailJoints = 0
 The number of joints assigned to the tail.
const unsigned CommonCalliopeInfo::NumMouthJoints = 0
 the number of joints that control the mouth
const unsigned CommonCalliopeInfo::NumEarJoints = 0
 The number of joints which control the ears (NOT per ear, is total).
const unsigned CommonCalliopeInfo::NumButtons = 15
 the number of buttons that are available
const unsigned CommonCalliopeInfo::NumLEDs = 4
 The number of LEDs which can be controlled.
const unsigned CommonCalliopeInfo::NumFacePanelLEDs = 0
 The number of face panel LEDs.

Output Offsets

Corresponds to entries in outputNames, defined at the end of this file



enum  CommonCalliopeInfo::WheelOffset_t { CommonCalliopeInfo::LWheelOffset = WheelOffset, CommonCalliopeInfo::RWheelOffset }
 

The beginning of the PID Joints.

More...
const unsigned CommonCalliopeInfo::PIDJointOffset = 0
 The beginning of the PID Joints.
const unsigned CommonCalliopeInfo::WheelOffset = PIDJointOffset
 The beginning of the PID Joints.
const fmat::Column< 3 > CommonCalliopeInfo::AgentBoundingBoxBaseFrameOffset = fmat::pack(838.4/2-304.8/2,0,0)
 Offset needed so that the centroid of the robot is correct related to the bounding box.
const fmat::Column< 3 > CommonCalliopeInfo::AgentBoundingBoxHalfDims = fmat::pack(838.4/2, 304.8/2, 0)
 Half of the length, width, and height of the robot.

Input Offsets

The order in which inputs should be stored



enum  CommonCalliopeInfo::ButtonOffset_t {
  CommonCalliopeInfo::PlayButOffset, CommonCalliopeInfo::AdvanceButOffset, CommonCalliopeInfo::WallButOffset, CommonCalliopeInfo::DropCasterButOffset,
  CommonCalliopeInfo::DropLeftWheelButOffset, CommonCalliopeInfo::DropRightWheelButOffset, CommonCalliopeInfo::BumpLeftButOffset, CommonCalliopeInfo::BumpRightButOffset,
  CommonCalliopeInfo::OvercurrentLeftWheelOffset, CommonCalliopeInfo::OvercurrentRightWheelOffset, CommonCalliopeInfo::LowSideDriver0ButOffset, CommonCalliopeInfo::LowSideDriver1ButOffset,
  CommonCalliopeInfo::LowSideDriver2ButOffset, CommonCalliopeInfo::BaseChargerButOffset, CommonCalliopeInfo::InternalChargerButOffset
}
 

holds offsets to different buttons in WorldState::buttons[]

More...
enum  CommonCalliopeInfo::SensorOffset_t {
  CommonCalliopeInfo::DigitalInput0Offset, CommonCalliopeInfo::DigitalInput1Offset, CommonCalliopeInfo::DigitalInput2Offset, CommonCalliopeInfo::DigitalInput3Offset,
  CommonCalliopeInfo::AnalogSignalOffset, CommonCalliopeInfo::WallSignalOffset, CommonCalliopeInfo::IRCommOffset, CommonCalliopeInfo::CliffLeftSignalOffset,
  CommonCalliopeInfo::CliffFrontLeftSignalOffset, CommonCalliopeInfo::CliffFrontRightSignalOffset, CommonCalliopeInfo::CliffRightSignalOffset, CommonCalliopeInfo::EncoderDistanceOffset,
  CommonCalliopeInfo::EncoderAngleOffset, CommonCalliopeInfo::VoltageOffset, CommonCalliopeInfo::CurrentOffset, CommonCalliopeInfo::BatteryChargeOffset,
  CommonCalliopeInfo::BatteryTempOffset, CommonCalliopeInfo::ChargingStateOffset, CommonCalliopeInfo::ModeStateOffset, CommonCalliopeInfo::GPSXOffset,
  CommonCalliopeInfo::GPSYOffset, CommonCalliopeInfo::GPSHeadingOffset
}
 

holds offset to different sensor values in WorldState::sensors[]

More...
enum  CommonCalliopeInfo::IRComm_t {
  CommonCalliopeInfo::IR_REMOTE_LEFT = 129, CommonCalliopeInfo::IR_REMOTE_FORWARD, CommonCalliopeInfo::IR_REMOTE_RIGHT, CommonCalliopeInfo::IR_REMOTE_SPOT,
  CommonCalliopeInfo::IR_REMOTE_MAX, CommonCalliopeInfo::IR_REMOTE_SMALL, CommonCalliopeInfo::IR_REMOTE_MEDIUM, CommonCalliopeInfo::IR_REMOTE_LARGE,
  CommonCalliopeInfo::IR_REMOTE_PAUSE, CommonCalliopeInfo::IR_REMOTE_POWER, CommonCalliopeInfo::IR_REMOTE_ARC_LEFT, CommonCalliopeInfo::IR_REMOTE_ARC_RIGHT,
  CommonCalliopeInfo::IR_REMOTE_STOP, CommonCalliopeInfo::IR_REMOTE_SEND, CommonCalliopeInfo::IR_REMOTE_DOCK, CommonCalliopeInfo::IR_BASE_RED = 248,
  CommonCalliopeInfo::IR_BASE_GREEN = 244, CommonCalliopeInfo::IR_BASE_FORCE = 242, CommonCalliopeInfo::IR_BASE_RED_GREEN = 252, CommonCalliopeInfo::IR_BASE_RED_FORCE = 250,
  CommonCalliopeInfo::IR_BASE_GREEN_FORCE = 246, CommonCalliopeInfo::IR_BASE_RED_GREEN_FORCE = 254
}
 

holds offsets to different buttons in WorldState::buttons[]

More...
enum  CommonCalliopeInfo::ChargingState_t {
  CommonCalliopeInfo::CHARGING_OFF, CommonCalliopeInfo::CHARGING_RECONDITIONING, CommonCalliopeInfo::CHARGING_FULL, CommonCalliopeInfo::CHARGING_TRICKLE,
  CommonCalliopeInfo::CHARGING_WAITING, CommonCalliopeInfo::CHARGING_FAULT
}
 

holds offsets to different buttons in WorldState::buttons[]

More...
enum  CommonCalliopeInfo::ModeState_t { CommonCalliopeInfo::MODE_OFF, CommonCalliopeInfo::MODE_PASSIVE, CommonCalliopeInfo::MODE_SAFE, CommonCalliopeInfo::MODE_FULL }
 

holds offsets to different buttons in WorldState::buttons[]

More...
const ButtonOffset_t CommonCalliopeInfo::GreenButOffset = PlayButOffset
 holds offsets to different buttons in WorldState::buttons[]
const ButtonOffset_t CommonCalliopeInfo::YellowButOffset = AdvanceButOffset
 holds offsets to different buttons in WorldState::buttons[]
const ButtonOffset_t CommonCalliopeInfo::RedButOffset = PlayButOffset
 holds offsets to different buttons in WorldState::buttons[]
const char *const CommonCalliopeInfo::buttonNames [NumButtons+1]
 Provides a string name for each button.

Define Documentation

#define __RI_RAD_FLAG

a flag so we undef these after we're done - do you have a cleaner solution?

Definition at line 75 of file CommonCalliopeInfo.h.

#define RAD ( deg   )     (((deg) * (float)M_PI ) / 180.0f)

Just a little macro for converting degrees to radians.

Definition at line 73 of file CommonCalliopeInfo.h.

#define TGT_HAS_ARMS   1

Definition at line 61 of file CommonCalliopeInfo.h.

#define TGT_HAS_ARMS   1

Definition at line 61 of file CommonCalliopeInfo.h.

#define TGT_HAS_BUTTONS   15

Definition at line 43 of file CommonCalliopeInfo.h.

#define TGT_HAS_CAMERA   1

Definition at line 45 of file CommonCalliopeInfo.h.

#define TGT_HAS_FINGERS   2

Definition at line 63 of file CommonCalliopeInfo.h.

#define TGT_HAS_GRIPPER   1

Definition at line 62 of file CommonCalliopeInfo.h.

#define TGT_HAS_GRIPPER   1

Definition at line 62 of file CommonCalliopeInfo.h.

#define TGT_HAS_HEAD   1

Definition at line 50 of file CommonCalliopeInfo.h.

#define TGT_HAS_IR_DISTANCE   3

Definition at line 68 of file CommonCalliopeInfo.h.

#define TGT_HAS_LEDS   4

Definition at line 44 of file CommonCalliopeInfo.h.

#define TGT_HAS_WHEELS   2

Definition at line 42 of file CommonCalliopeInfo.h.

Referenced by CMPackWalkMC::setTargetVelocity().

#define TGT_IS_CALLIOPE

Definition at line 26 of file CommonCalliopeInfo.h.

#define TGT_IS_CALLIOPE2

Definition at line 27 of file CommonCalliopeInfo.h.

#define TGT_IS_CREATE

Definition at line 41 of file CommonCalliopeInfo.h.


Tekkotsu v5.1CVS
Generated Sun May 5 23:02:27 2013 by Doxygen 1.6.3