#include <aiboleg.h>
Inheritance diagram for AiboLeg:
Public Member Functions | |
AiboLeg () | |
virtual | ~AiboLeg () |
int | GetNumJoints () const |
Methods for head primitives | |
void | OpenPrimitives () |
OPrimitiveID | GetJointID (LEG_JOINT j) const |
Methods for commannd vector manipulation and generation | |
void | NewCommandVectorData () |
Methods for setting joint angles | |
void | SetJoint (slongword angle, LEG_JOINT joint, int cmdVecIndex) |
void | SetJoint (double angle, LEG_JOINT joint, int cmdVecIndex) |
void | SetJoint (double start, double angle, LEG_JOINT joint, int cmdVecIndex) |
void | SetJoint (slongword angle, LEG_JOINT joint, int numFrames, int cmdVecIndex) |
void | SetJoint (double angle, LEG_JOINT joint, int numFrames, int cmdVecIndex) |
void | SetJoint (double start, double angle, LEG_JOINT joint, int numFrames, int cmdVecIndex) |
void | SetJointRel (slongword angle, LEG_JOINT joint, int cmdVecIndex) |
void | SetJointRel (double angle, LEG_JOINT joint, int cmdVecIndex) |
void | SetJointRel (double start, double angle, LEG_JOINT joint, int cmdVecIndex) |
void | SetJointRel (slongword angle, LEG_JOINT joint, int numFrames, int cmdVecIndex) |
void | SetJointRel (double angle, LEG_JOINT joint, int numFrames, int cmdVecIndex) |
void | SetJointRel (double start, double angle, LEG_JOINT joint, int numFrames, int cmdVecIndex) |
Methods for getting joint angles | |
double | GetJointValue (LEG_JOINT joint) const |
double | GetOPENRJointValue (LEG_JOINT joint) const |
double | GetMaxJointValue (int index, JOINT_UNIT unit=ANGLE_RAD) const |
double | GetMaxJointValue (LEG_JOINT joint, JOINT_UNIT unit=ANGLE_RAD) const |
double | GetMinJointValue (int index, JOINT_UNIT unit=ANGLE_RAD) const |
double | GetMinJointValue (LEG_JOINT joint, JOINT_UNIT unit=ANGLE_RAD) const |
double | GetMaxJointVelocity (int index, JOINT_UNIT unit=ANGLE_RAD) const |
double | GetMaxJointVelocity (LEG_JOINT joint, JOINT_UNIT unit=ANGLE_RAD) const |
Methods for stetting joint gain | |
void | SetJointGain () |
void | EnableJointGain (LEG_JOINT joint) |
void | DisableJointGain (LEG_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 | J1_PGAIN = 0x0016 |
static const word | J1_IGAIN = 0x0004 |
static const word | J1_DGAIN = 0x0008 |
static const word | J2_PGAIN = 0x0014 |
static const word | J2_IGAIN = 0x0004 |
static const word | J2_DGAIN = 0x0006 |
static const word | J3_PGAIN = 0x0023 |
static const word | J3_IGAIN = 0x0004 |
static const word | J3_DGAIN = 0x0005 |
static const double | MAX_J1_DEG = 117.0 |
static const double | MAX_J2_DEG = 89.0 |
static const double | MAX_J3_DEG = 147.0 |
static const double | MIN_J1_DEG = -117.0 |
static const double | MIN_J2_DEG = -11.0 |
static const double | MIN_J3_DEG = -27.0 |
static const double | MAX_J1 = MAX_J1_DEG * DEGTORAD |
static const double | MAX_J2 = MAX_J2_DEG * DEGTORAD |
static const double | MAX_J3 = MAX_J3_DEG * DEGTORAD |
static const double | MIN_J1 = MIN_J1_DEG * DEGTORAD |
static const double | MIN_J2 = MIN_J2_DEG * DEGTORAD |
static const double | MIN_J3 = MIN_J3_DEG * DEGTORAD |
static const double | MAX_J1_VELO_DEG = 2.58/2.0 |
static const double | MAX_J2_VELO_DEG = 2.29/2.0 |
static const double | MAX_J3_VELO_DEG = 2.60/2.0 |
static const double | MAX_J1_VELO = MAX_J1_VELO_DEG * DEGTORAD |
static const double | MAX_J2_VELO = MAX_J2_VELO_DEG * DEGTORAD |
static const double | MAX_J3_VELO = MAX_J3_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 relative to actual 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 relative to actual 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 relative to actual value
Here is the call graph for this function: |
|
|
|
Here is the call graph for this function: |
|
Returns the max joint value for joint with the given index
Implements AiboJoint. |
|
Same as GetMaxJointValue(int index). Acceptes just an other argument |
|
Returns the mix joint value for joint with the given index
Implements AiboJoint. |
|
Same as GetMinJointValue(in index). Acceptes just an other argument |
|
Returns the max joint velocity for joint with the given index
Implements AiboJoint. |
|
Same as GetMaxJointVelocity(int index). Acceptes just an other argument |
|
Sets the joint gain for all joints and enables it Implements AiboJoint. |
|
Enables joint gain for the corresponding joint
Here is the call graph for this function: |
|
Disables joint gain for the corresponding joint
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-Controller) for leg-joint 1 |
|
I-Gain value (PID-Controller) for leg-joint 1 |
|
D-Gain value (PID-Controller) for leg-joint 1 |
|
P-Gain value (PID-Controller) for leg-joint 2 |
|
I-Gain value (PID-Controller) for leg-joint 2 |
|
D-Gain value (PID-Controller) for leg-joint 2 |
|
P-Gain value (PID-Controller) for leg-joint 3 |
|
I-Gain value (PID-Controller) for leg-joint 3 |
|
D-Gain value (PID-Controller) for leg-joint 3 |
|
Maximum allowed joint value for leg-joint 1 UNIT: degree |
|
Maximum allowed joint value for leg-joint 2 UNIT: degree |
|
Maximum allowed joint value for leg-joint 3 UNIT: degree |
|
Minimum allowed joint value for leg-joint 1 UNIT: degree |
|
Minimum allowed joint value for leg-joint 2 UNIT: degree |
|
Minimum allowed joint value for leg-joint 3 UNIT: degree |
|
Maximum allowed joint value for leg-joint 1 UNIT: radians |
|
Maximum allowed joint value for leg-joint 2 UNIT: radians |
|
Maximum allowed joint value for leg-joint 3 UNIT: radians |
|
Minimum allowed joint value for leg-joint 1 UNIT: radians |
|
Minimum allowed joint value for leg-joint 2 UNIT: radians |
|
Minimum allowed joint value for leg-joint 3 UNIT: radians |
|
Maximum allowed joint acceleration for leg-joint 1 UNIT: deg/frame |
|
Maximum allowed joint acceleration for leg-joint 2 UNIT: deg/frame |
|
Maximum allowed joint acceleration for leg-joint 3 UNIT: deg/frame |
|
Maximum allowed joint acceleration for leg-joint 1 UNIT: rad/frame |
|
Maximum allowed joint acceleration for leg-joint 2 UNIT: rad/frame |
|
Maximum allowed joint acceleration for leg-joint 3 UNIT: rad/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. |
Tim Baier
AiboLib v0.2.4 |
Generated Thu Jan 19 11:55:51 2006 by 1.4.3 |