We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfbe6b3 commit 9099739Copy full SHA for 9099739
src/kinematics.cpp
@@ -84,9 +84,10 @@ void KinematicModel::get_link_pose_inner(
84
} else if (pjoint->type == urdf::Joint::REVOLUTE ||
85
pjoint->type == urdf::Joint::CONTINUOUS) {
86
double angle = joint_angles_[pjoint->id];
87
- Transform tf_pjoint_to_hlink = pjoint->transform(angle);
88
- tf_plink_to_hlink = tf_plink_to_pjoint *
89
- urdf_pose_to_eigen_affine3d(tf_pjoint_to_hlink);
+ Eigen::AngleAxisd tf_pjoint_to_hlink{
+ angle,
+ Eigen::Vector3d{pjoint->axis.x, pjoint->axis.y, pjoint->axis.z}};
90
+ tf_plink_to_hlink = tf_plink_to_pjoint * tf_pjoint_to_hlink;
91
} else {
92
assert(false && "unknown joint type");
93
}
0 commit comments