Skip to content

Commit

Permalink
Fix columns
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahr committed Nov 8, 2024
1 parent a9d5f49 commit 492c305
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moveit_core/robot_state/test/robot_state_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ void checkJacobian(moveit::core::RobotState& state, const moveit::core::JointMod
index += (*jt)->getVariableCount();
}

EXPECT_TRUE(jacobian.block(0, index, jacobian.rows(), jacobian.cols()).isZero())
EXPECT_TRUE(jacobian.block(0, index, jacobian.rows(), jacobian.cols() - index).isZero())
<< "Jacobian contains non-zero values for joints that are not used based on the reference link "
<< reference_link->getName() << ". This is the faulty Jacobian: " << '\n'
<< jacobian << '\n'
<< "The columns " << index << " to " << jacobian.cols() << " should be zero. Instead the values are: " << '\n'
<< jacobian.block(0, index, jacobian.rows(), jacobian.cols());
<< jacobian.block(0, index, jacobian.rows(), jacobian.cols() - index);
}

// Compute the Cartesian velocity vector using the Jacobian.
Expand Down

0 comments on commit 492c305

Please sign in to comment.