Skip to content

Commit

Permalink
[Ninja][Navigation] fix bug in FK in assembled state
Browse files Browse the repository at this point in the history
  • Loading branch information
sugihara-16 committed Sep 5, 2024
1 parent 52848ff commit b759d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions robots/ninja/src/ninja_navigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ void NinjaNavigator::calcCenterOfMoving()
KDL::ChainFkSolverPos_recursive fk_solver(chain);
KDL::Frame frame;
KDL::JntArray joint_positions(2);
joint_positions(0) = data.joint_pos_(YAW);
joint_positions(1) = data.joint_pos_(PITCH);
joint_positions(0) = data.joint_pos_(PITCH);
joint_positions(1) = data.joint_pos_(YAW);
if (fk_solver.JntToCart(joint_positions, frame) < 0) {
ROS_ERROR_STREAM("Failed to compute FK for module" << it.first);
return;
Expand Down

0 comments on commit b759d88

Please sign in to comment.