6 #ifndef GAIT_JOINT_POSE_H
7 #define GAIT_JOINT_POSE_H
10 #include <gait/util/gait_common_pose.h>
11 #include <gait/gait_common.h>
24 class AbstractLegPose;
25 class AbstractArmPose;
46 inline void reset(
bool left =
true)
49 setPose(0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
void setLinkLength(double length)
Set the link length used for pose conversions.
Definition: gait_common_pose.h:178
void setFromAbstractPose(const AbstractLegPose &pose)
Set the joint leg pose to a given abstract leg pose.
Definition: gait_joint_pose.cpp:25
JointPose()
Default constructor.
Definition: gait_joint_pose.h:249
void readJointEffortArray(const double(&effort)[NUM_JOINTS])
Set the joint efforts to the values specified by a given joint effort array.
Definition: gait_joint_pose.cpp:133
JointLegPose leftLeg
Joint pose of the left leg.
Definition: gait_joint_pose.h:339
void setLegsFromInversePose(const InverseLegPose &left, const InverseLegPose &right)
Set the joint leg poses to given inverse poses.
Definition: gait_joint_pose.h:284
JointLegPose(bool left=true)
Default constructor.
Definition: gait_joint_pose.h:43
void setLinkLength(double length)
Set the link length used for pose conversions.
Definition: gait_joint_pose.h:184
void setFromInversePose(const InversePose &pose)
Set the joint pose to a given inverse pose.
Definition: gait_joint_pose.cpp:85
void reset(bool left=true)
Reset function.
Definition: gait_common_pose.h:135
CommonArmData cad
Data that is shared by all arm pose representations.
Definition: gait_joint_pose.h:227
void setPoseMirrored(double hipYaw, double hipRoll, double hipPitch, double kneePitch, double anklePitch, double ankleRoll)
Set the joint pose in mirror mode (directly set the joint pose parameters if this is the left leg...
Definition: gait_joint_pose.h:68
JointArmPose leftArm
Joint pose of the left arm.
Definition: gait_joint_pose.h:341
void setArmsFromInversePose(const InverseArmPose &left, const InverseArmPose &right)
Set the joint arm poses to given inverse poses.
Definition: gait_joint_pose.h:298
void reset()
Reset function.
Definition: gait_joint_pose.h:252
Data struct that contains the information pertaining to an arm pose that should be common amongst all...
Definition: gait_common_pose.h:125
void setPose(double hipYaw, double hipRoll, double hipPitch, double kneePitch, double anklePitch, double ankleRoll)
Set the joint pose (directly set the joint pose parameters)
Definition: gait_joint_pose.h:57
void getJointAngles(double &shoulderPitch, double &shoulderRoll, double &elbowPitch) const
Retrieve the joint angles corresponding to the current joint arm pose.
Definition: gait_joint_pose.h:208
double hipYaw
The hip yaw joint position.
Definition: gait_joint_pose.h:131
void reset(bool left=true)
Reset function.
Definition: gait_joint_pose.h:46
void setFromInversePose(const InverseArmPose &pose)
Set the joint arm pose to a given inverse arm pose.
Definition: gait_joint_pose.cpp:55
Data struct that encompasses the joint representation of a robot pose.
Definition: gait_joint_pose.h:242
JointArmPose(bool left=true)
Default constructor.
Definition: gait_joint_pose.h:154
void fromJointAngles(double hipYaw, double hipRoll, double hipPitch, double kneePitch, double anklePitch, double ankleRoll)
Set the pose of the leg to the pose defined by the given joint angles.
Definition: gait_joint_pose.h:95
void setFromInversePose(const InverseLegPose &pose)
Set the joint leg pose to a given inverse leg pose.
Definition: gait_joint_pose.cpp:18
void blendTowards(const JointArmPose &other, double b)
Blend this joint pose towards another one by a given blending factor (b: 0 = Pose remains unchanged...
Definition: gait_joint_pose.cpp:69
Data struct that encompasses the abstract representation of an arm pose.
Definition: gait_abstract_pose.h:136
double hipPitch
The hip pitch joint position.
Definition: gait_joint_pose.h:133
void reset(bool left=true)
Reset function.
Definition: gait_common_pose.h:30
void setLinkLengths(double legLinkLength, double armLinkLength)
Set the arm and leg link lengths used for pose conversions.
Definition: gait_joint_pose.h:265
double anklePitch
The ankle pitch joint position.
Definition: gait_joint_pose.h:135
double linkLength
The assumed (equal) length of the upper and lower leg links (used for joint pose conversions) ...
Definition: gait_common_pose.h:114
double linkLength
The assumed (equal) length of the upper and lower arm links (used for joint pose conversions) ...
Definition: gait_common_pose.h:197
double elbowPitch
The elbow pitch joint position.
Definition: gait_joint_pose.h:232
void setLegsFromAbstractPose(const AbstractLegPose &left, const AbstractLegPose &right)
Set the joint leg poses to given abstract poses.
Definition: gait_joint_pose.h:291
Data struct that encompasses the inverse representation of an arm pose.
Definition: gait_inverse_pose.h:118
void writeJointPosArray(double(&pos)[NUM_JOINTS]) const
Transcribe the stored joint pose to a joint position array.
Definition: gait_joint_pose.cpp:163
void setFromAbstractPose(const AbstractArmPose &pose)
Set the joint arm pose to a given abstract arm pose.
Definition: gait_joint_pose.cpp:62
Data struct that encompasses the joint representation of an arm pose.
Definition: gait_joint_pose.h:147
double shoulderPitch
The shoulder pitch joint position.
Definition: gait_joint_pose.h:230
void setFromAbstractPose(const AbstractPose &pose)
Set the joint pose to a given abstract pose.
Definition: gait_joint_pose.cpp:94
double hipRoll
The hip roll joint position.
Definition: gait_joint_pose.h:132
void setLinkLength(double length)
Set the link length used for pose conversions.
Definition: gait_joint_pose.h:79
CommonLegData cld
Data that is shared by all leg pose representations.
Definition: gait_joint_pose.h:128
void setPoseMirrored(double shoulderPitch, double shoulderRoll, double elbowPitch)
Set the joint pose in mirror mode (directly set the joint pose parameters if this is the left arm...
Definition: gait_joint_pose.h:176
double kneePitch
The knee pitch joint position.
Definition: gait_joint_pose.h:134
double ankleRoll
The ankle roll joint position.
Definition: gait_joint_pose.h:136
Data struct that encompasses the inverse representation of a robot pose.
Definition: gait_inverse_pose.h:188
Data struct that encompasses the abstract representation of a robot pose.
Definition: gait_abstract_pose.h:214
void blendTowards(const JointPose &other, double b)
Blend this joint pose towards another one by a given blending factor (b: 0 = Pose remains unchanged...
Definition: gait_joint_pose.cpp:223
void fromJointAngles(double shoulderPitch, double shoulderRoll, double elbowPitch)
Set the pose of the arm to the pose defined by the given joint angles.
Definition: gait_joint_pose.h:200
bool isLeft
Boolean flag that is true if this is a left leg and false if this is a right leg. ...
Definition: gait_common_pose.h:110
bool isLeft
Boolean flag that is true if this is a left arm and false if this is a right arm. ...
Definition: gait_common_pose.h:193
Data struct that encompasses the abstract representation of a leg pose.
Definition: gait_abstract_pose.h:35
void reset(bool left=true)
Reset function.
Definition: gait_joint_pose.h:157
Data struct that encompasses the joint representation of a leg pose.
Definition: gait_joint_pose.h:36
Data struct that encompasses the inverse representation of a leg pose.
Definition: gait_inverse_pose.h:36
void getJointAngles(double &hipYaw, double &hipRoll, double &hipPitch, double &kneePitch, double &anklePitch, double &ankleRoll) const
Retrieve the joint angles corresponding to the current joint leg pose.
Definition: gait_joint_pose.h:106
JointLegPose rightLeg
Joint pose of the right leg.
Definition: gait_joint_pose.h:340
void setPose(double shoulderPitch, double shoulderRoll, double elbowPitch)
Set the joint pose (directly set the joint pose parameters)
Definition: gait_joint_pose.h:168
double shoulderRoll
The shoulder roll joint position.
Definition: gait_joint_pose.h:231
void blendTowards(const JointLegPose &other, double b)
Blend this joint pose towards another one by a given blending factor (b: 0 = Pose remains unchanged...
Definition: gait_joint_pose.cpp:32
Data struct that contains the information pertaining to a leg pose that should be common amongst all ...
Definition: gait_common_pose.h:20
void readJointPosArray(const double(&pos)[NUM_JOINTS])
Set the joint pose to the values specified by a given joint position array.
Definition: gait_joint_pose.cpp:103
JointArmPose rightArm
Joint pose of the right arm.
Definition: gait_joint_pose.h:342
void setLinkLength(double length)
Set the link length used for pose conversions.
Definition: gait_common_pose.h:89
void writeJointEffortArray(double(&effort)[NUM_JOINTS]) const
Transcribe the stored joint efforts to a joint effort array.
Definition: gait_joint_pose.cpp:193
void setArmsFromAbstractPose(const AbstractArmPose &left, const AbstractArmPose &right)
Set the joint arm poses to given abstract poses.
Definition: gait_joint_pose.h:305