Skip to content

Commit

Permalink
Check for active target in CartPoseErrCalc
Browse files Browse the repository at this point in the history
  • Loading branch information
marrts committed Dec 7, 2023
1 parent 37d6f62 commit 5678904
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trajopt/src/kinematic_terms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ CartPoseErrCalculator::CartPoseErrCalculator(tesseract_kinematics::JointGroup::C
, indices_(std::move(indices))
{
assert(indices_.size() <= 6);
is_target_active_ = manip_->isActiveLinkName(target_frame_);

// Check to see if the waypoint is toleranced and set the error function accordingly
if ((lower_tolerance.size() == 0 && upper_tolerance.size() == 0) || lower_tolerance.isApprox(upper_tolerance, 1e-6))
Expand Down

0 comments on commit 5678904

Please sign in to comment.