#include <aibohead.h>
Inheritance diagram for AiboHead:
Public Member Functions | |
AiboHead () | |
virtual | ~AiboHead () |
int | GetNumJoints () const |
Methods for head primitives | |
void | OpenPrimitives () |
OPrimitiveID | GetJointID (const HEAD_JOINT j) const |
Methods for command vector manipulation and generation | |
void | NewCommandVectorData () |
Methods for setting joint angles | |
void | SetJoint (const slongword angle, const HEAD_JOINT joint, const int cmdVecIndex) |
void | SetJoint (const slongword angle, const HEAD_JOINT joint, const int numFrames, const int cmdVecIndex) |
void | SetJoint (const double angle, const HEAD_JOINT joint, const int cmdVecIndex) |
void | SetJoint (const double angle, const HEAD_JOINT joint, const int numFrames, const int cmdVecIndex) |
void | SetJoint (const double start, const double angle, const HEAD_JOINT joint, const int cmdVecIndex) |
void | SetJoint (const double start, const double angle, const HEAD_JOINT joint, const int numFrames, const int cmdVecIndex) |
void | SetJointRel (const slongword angle, const HEAD_JOINT joint, const int cmdVecIndex) |
void | SetJointRel (const slongword angle, const HEAD_JOINT joint, const int numFrames, const int cmdVecIndex) |
void | SetJointRel (const double angle, const HEAD_JOINT joint, const int cmdVecIndex) |
void | SetJointRel (const double angle, const HEAD_JOINT joint, const int numFrames, const int cmdVecIndex) |
void | SetJointRel (const double start, const double angle, const HEAD_JOINT joint, const int cmdVecIndex) |
void | SetJointRel (const double start, const double angle, const HEAD_JOINT joint, const int numFrames, const int cmdVecIndex) |
Methods for getting joint angles | |
double | GetJointValue (const HEAD_JOINT joint) const |
double | GetOPENRJointValue (const HEAD_JOINT joint) const |
double | GetMaxJointValue (const int index, JOINT_UNIT unit=ANGLE_RAD) const |
double | GetMaxJointValue (const HEAD_JOINT joint, JOINT_UNIT unit=ANGLE_RAD) const |
double | GetMinJointValue (const int index, JOINT_UNIT unit=ANGLE_RAD) const |
double | GetMinJointValue (const HEAD_JOINT joint, JOINT_UNIT unit=ANGLE_RAD) const |
double | GetMaxJointVelocity (const int index, JOINT_UNIT unit=ANGLE_RAD) const |
double | GetMaxJointVelocity (const HEAD_JOINT joint, JOINT_UNIT unit=ANGLE_RAD) const |
Methods for stetting joint gain | |
void | SetJointGain () |
void | EnableJointGain (const HEAD_JOINT joint) |
void | DisableJointGain (const HEAD_JOINT joint) |
Methods for joint primitives | |
OPrimitiveID | GetJointID (int j) const |
Methods for commannd vector manipulation and generation | |
RCRegion * | FindFreeRegion () const |
int | FindFreeRegionIndex () const |
RCRegion * | GetRegion (int index=0) |
void | SetCommandVector (int index, OCommandVectorData *vec) |
Methods for setting joint angles | |
void | SetJointOPENR (slongword angle, OPrimitiveID joint, int jointIndex, int cmdVecIndex) |
void | SetJointOPENR (double angle, OPrimitiveID joint, int jointIndex, int cmdVecIndex) |
void | SetJoint (double start, double angle, OPrimitiveID joint, int jointIndex, int cmdVecIndex) |
void | SetJoint (double start, double angle, OPrimitiveID joint, int jointIndex, int numFrames, int cmdVecIndex) |
void | SetJoint (double angle, OPrimitiveID joint, int jointIndex, int cmdVecIndex) |
void | SetJoint (double angle, OPrimitiveID joint, int jointIndex, int numFrames, int cmdVecIndex) |
void | SetJoint (slongword angle, OPrimitiveID joint, int jointIndex, int cmdVecIndex) |
void | SetJoint (slongword angle, OPrimitiveID joint, int jointIndex, int numFrames, int cmdVecIndex) |
void | SetJointRelOPENR (slongword angle, OPrimitiveID joint, int jointIndex, int cmdVecIndex) |
void | SetJointRelOPENR (double angle, OPrimitiveID joint, int jointIndex, int cmdVecIndex) |
void | SetJointRel (double start, double angle, OPrimitiveID joint, int jointIndex, int cmdVecIndex) |
void | SetJointRel (double start, double angle, OPrimitiveID joint, int jointIndex, int numFrames, int cmdVecIndex) |
void | SetJointRel (double angle, OPrimitiveID joint, int jointIndex, int cmdVecIndex) |
void | SetJointRel (double angle, OPrimitiveID joint, int jointIndex, int numFrames, int cmdVecIndex) |
void | SetJointRel (slongword angle, OPrimitiveID joint, int jointIndex, int cmdVecIndex) |
void | SetJointRel (slongword angle, OPrimitiveID joint, int jointIndex, int numFrames, int cmdVecIndex) |
void | RefreshCommandVector (int cmdVecIndex) |
void | RefreshCommandVectors () |
void | RefreshJointValue (int index) |
void | RefreshJointValues () |
Methods for getting joint angles | |
double | GetJointValue (int index) const |
double | GetOPENRJointValue (OPrimitiveID joint) const |
double | GetOPENRJointValue (int joint) const |
Methods for stetting joint gain | |
void | EnableJointGain () |
void | EnableJointGain (OPrimitiveID id) |
void | DisableJointGain () |
void | DisableJointGain (OPrimitiveID id) |
Methods for state of joints | |
JOINT_STATE | GetState () const |
void | SetState (JOINT_STATE st) |
Data Fields | |
RCRegion * | Region [MaxJointRegions] |
Static Public Attributes | |
static const int | MaxJointRegions = 2 |
Protected Attributes | |
JOINT_STATE | State |
int | NumJoints |
double * | JointValues |
OPrimitiveID * | JointID |
double | FrameFactor [ocommandMAX_FRAMES] |
Static Protected Attributes | |
static const word | HT_PGAIN = 0x000a |
static const word | HT_IGAIN = 0x0008 |
static const word | HT_DGAIN = 0x000c |
static const word | HP_PGAIN = 0x000d |
static const word | HP_IGAIN = 0x0008 |
static const word | HP_DGAIN = 0x000b |
static const word | HR_PGAIN = 0x000a |
static const word | HR_IGAIN = 0x0008 |
static const word | HR_DGAIN = 0x000c |
static const double | MAX_TILT_DEG = 46.0 |
static const double | MIN_TILT_DEG = -91.5 |
static const double | MAX_ROLL_DEG = 32.0 |
static const double | MIN_ROLL_DEG = -32.0 |
static const double | MAX_PAN_DEG = 92.6 |
static const double | MIN_PAN_DEG = -92.6 |
static const double | MAX_TILT = MAX_TILT_DEG * DEGTORAD |
static const double | MIN_TILT = MIN_TILT_DEG * DEGTORAD |
static const double | MAX_ROLL = MAX_ROLL_DEG * DEGTORAD |
static const double | MIN_ROLL = MIN_ROLL_DEG * DEGTORAD |
static const double | MAX_PAN = MAX_PAN_DEG * DEGTORAD |
static const double | MIN_PAN = MIN_PAN_DEG * DEGTORAD |
static const double | MAX_TILT_VELO_DEG = 1.93/2.0 |
static const double | MAX_ROLL_VELO_DEG = 2.76/2.0 |
static const double | MAX_PAN_VELO_DEG = 2.76/2.0 |
static const double | MAX_TILT_VELO = MAX_TILT_VELO_DEG * DEGTORAD |
static const double | MAX_ROLL_VELO = MAX_ROLL_VELO_DEG * DEGTORAD |
static const double | MAX_PAN_VELO = MAX_PAN_VELO_DEG * DEGTORAD |
static const word | PSHIFT = 0x000e |
static const word | ISHIFT = 0x0002 |
static const word | DSHIFT = 0x000f |
|
Default constructor |
|
Default destructor |
|
Initializes the JointID's Implements AiboJoint. |
|
Returns the primitive id of joint
|
|
Initializes the RCRegion's (Region[]) with a command vector Implements AiboJoint. |
|
Sets a joint to a given value
Here is the call graph for this function: ![]() |
|
Sets a joint to a given value
Here is the call graph for this function: ![]() |
|
Sets a joint to a given value
Here is the call graph for this function: ![]() |
|
Sets a joint to a given value
Here is the call graph for this function: ![]() |
|
Sets a joint to a given value
Here is the call graph for this function: ![]() |
|
Sets a joint to a given value
Here is the call graph for this function: ![]() |
|
Sets a joint to a given value relative to actual value
Here is the call graph for this function: ![]() |
|
Sets a joint to a given value
Here is the call graph for this function: ![]() |
|
Sets a joint to a given value relative to actual value
Here is the call graph for this function: ![]() |
|
Sets a joint to a given value
Here is the call graph for this function: ![]() |
|
Sets a joint to a given value relative to actual value
Here is the call graph for this function: ![]() |
|
Sets a joint to a given value
Here is the call graph for this function: ![]() |
|
Returns the protocoled joint value (wehre you think you are)
|
|
Returns the real joint value
Here is the call graph for this function: ![]() |
|
Returns the max joint value for joint with the given index
Implements AiboJoint. |
|
Same as GetMaxJointValue(const int index). Accepts just an other argument |
|
Returns the mix joint value for joint with the given index
Implements AiboJoint. |
|
Same as GetMinJointValue(const int index). Accepts just an other argument |
|
Returns the max joint velocity for joint with the given index
Implements AiboJoint. |
|
Same as GetMaxJointVelocity(const int index). Accepts just an other argument |
|
Sets the joint gain for all joints and enables it Implements AiboJoint. |
|
Here is the call graph for this function: ![]() |
|
Here is the call graph for this function: ![]() |
|
|
|
Finds a free memory region (RCRegion) in which the next command data can be set
|
|
Finds a free memory region (RCRegion) in which the next command data can be set
|
|
returns the command vector corresponding to the index |
|
Method allows user to insert an own command vector in memory region
|
|
Sets the joint value in the given command vector to a given value
|
|
Sets the joint value in the given command vector to a given value and know your angles by yourself!
Here is the call graph for this function: ![]() |
|
Sets the joint value in the given command vector to a given value
Here is the call graph for this function: ![]() |
|
Sets the joint value in the given command vector to a given value
Here is the call graph for this function: ![]() |
|
Sets the joint value in the given command vector to a given value
Here is the call graph for this function: ![]() |
|
Sets the joint value in the given command vector to a given value
Here is the call graph for this function: ![]() |
|
Sets the joint value in the given command vector to a given value
Here is the call graph for this function: ![]() |
|
Sets the joint value in the given command vector to a given value
Here is the call graph for this function: ![]() |
|
Sets the joint value relative to the actual value in the given command vector to a given value
|
|
Sets the joint value relative to the actual value in the given command vector to a given value and know the angles by yourself!
Here is the call graph for this function: ![]() |
|
Sets the joint value relative to the actual value in the given command vector to a given value
Here is the call graph for this function: ![]() |
|
Sets the joint value relative to the actual value in the given command vector to a given value.
Here is the call graph for this function: ![]() |
|
Sets the joint value relative to the actual value in the given command vector to a given value
Here is the call graph for this function: ![]() |
|
Sets the joint value relative to the actual value in the given command vector to a given value
Here is the call graph for this function: ![]() |
|
Sets the joint value relative to the actual value in the given command vector to a given value
Here is the call graph for this function: ![]() |
|
Sets the joint value relative to the actual value in the given command vector to a given value
Here is the call graph for this function: ![]() |
|
Sets all values of each joint in a command vector to the actual joint values
Here is the call graph for this function: ![]() |
|
Sets all values of each joint in all command vectors to the actual joint values Here is the call graph for this function: ![]() |
|
Refreshes the protocoled joint value
|
|
Refreshes all of the protocoled joint values
Here is the call graph for this function: ![]() |
|
Returns the protocoled joint value (where you think you are)
|
|
Returns the real joint value
|
|
Returns the real joint value
|
|
Enables the joint gain for all joints(already included in SetJoint Gain() ) |
|
Enables the joint gain (already included in SetJoint Gain() )
|
|
Disables the joint gain for all joints |
|
Disables the joint gain
|
|
Returns the state of the joints
|
|
Sets the Joint State to a given state
|
|
Returns the numer of joint of an ERS-220
|
|
P-Gain Value (PID-Contoller) for Head-Tilt |
|
I-Gain Value (PID-Contoller) for Head-Tilt |
|
D-Gain Value (PID-Contoller) for Head-Tilt |
|
P-Gain Value (PID-Contoller) for Head-Pan |
|
I-Gain Value (PID-Contoller) for Head-Pan |
|
D-Gain Value (PID-Contoller) for Head-Pan |
|
P-Gain Value (PID-Contoller) for Head-Roll |
|
I-Gain Value (PID-Contoller) for Head-Roll |
|
D-Gain Value (PID-Contoller) for Head-Roll |
|
Maximum value for Head-Tilt joint. UNIT: deg. |
|
Minimum value for Head-Tilt joint. UNIT: deg. |
|
Maximum value for Head-Roll joint. UNIT: deg. |
|
Minimum value for Head-Roll joint. UNIT: deg. |
|
Maximum value for Head-Pan joint. UNIT: deg. |
|
Minimum value for Head-Pan joint. UNIT: deg. |
|
Maximum value for Head-Tilt joint. UNIT: radians. |
|
Minimum value for Head-Tilt joint. UNIT: radians. |
|
Maximum value for Head-Roll joint. UNIT: radians. |
|
Minimum value for Head-Roll joint. UNIT: radians. |
|
Maximum value for Head-Pan joint. UNIT: radians. |
|
Minimum value for Head-Pan joint. UNIT: radians. |
|
Maximum allowed velocity for Head-Tilt UNIT: degree/frame |
|
Maximum allowed velocity for Head-Roll UNIT: degree/frame |
|
Maximum allowed velocity for Head-Pan UNIT: degree/frame |
|
Maximum allowed velocity for Head-Tilt UNIT: radians/frame |
|
Maximum allowed velocity for Head-Roll UNIT: degree/frame |
|
Maximum allowed velocity for Head-Pan UNIT: degree/frame |
|
Number of maximum allowed RCRegions for joint control |
|
Array of RCRegion s for joint control |
|
State of joints |
|
Number of Joints |
|
Array for joint angle protocol (where you think you are) |
|
Array for storing primitive ID's |
|
P-Shift value (PID-Controller) for AIBO joints |
|
I-Shift value (PID-Controller) for AIBO joints |
|
D-Shift value (PID-Controller) for AIBO joints |
|
Array for FrameFactor. Normally a motion is performed over 16 frames. This factor multiplied with die difference of current and desired value so that the gain from one frame to an other is constant. It is used in nearly every SetJoint...(...) metho. |
![]() |
Generated Thu Jan 19 11:55:22 2006 by
![]() |