4 #ifndef POSECONVERTER_H
5 #define POSECONVERTER_H
7 #include <motion_file/motionfile.h>
9 #include <gait/util/gait_joint_pose.h>
10 #include <gait/util/gait_abstract_pose.h>
11 #include <gait/util/gait_inverse_pose.h>
26 gait::JointPose getJointPose(motionfile::KeyframePtr frame,
const std::vector<std::string> &jointList);
28 void updateFrame(
gait::AbstractPose &abstractPose, motionfile::KeyframePtr frame,
const std::vector<std::string> &jointList);
29 void updateFrame(
gait::InversePose &inversePose, motionfile::KeyframePtr frame,
const std::vector<std::string> &jointList);
34 static PoseConverter::Angles anglesFromQuaternion(Eigen::Quaterniond q);
35 static Eigen::Quaterniond quaternionFromAngles(PoseConverter::Angles angles);
38 double getPos(motionfile::KeyframePtr frame,
const std::vector<std::string> &jointList, std::string jointName);
41 void setPos(motionfile::KeyframePtr frame,
const std::vector<std::string> &jointList, std::string jointName,
double pos);
43 void updateFrame(
gait::JointPose &pose, motionfile::KeyframePtr frame,
const std::vector<std::string> &jointList,
bool fromInverse);
48 #endif // POSECONVERTER_H
Data struct that encompasses the joint representation of a robot pose.
Definition: gait_joint_pose.h:242
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