Skip to content

Commit 9099739

Browse files
committed
tmp
1 parent bfbe6b3 commit 9099739

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/kinematics.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ void KinematicModel::get_link_pose_inner(
8484
} else if (pjoint->type == urdf::Joint::REVOLUTE ||
8585
pjoint->type == urdf::Joint::CONTINUOUS) {
8686
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);
87+
Eigen::AngleAxisd tf_pjoint_to_hlink{
88+
angle,
89+
Eigen::Vector3d{pjoint->axis.x, pjoint->axis.y, pjoint->axis.z}};
90+
tf_plink_to_hlink = tf_plink_to_pjoint * tf_pjoint_to_hlink;
9091
} else {
9192
assert(false && "unknown joint type");
9293
}

0 commit comments

Comments
 (0)