Skip to content

Commit

Permalink
Fixed issue checking wrong size for contact check results
Browse files Browse the repository at this point in the history
  • Loading branch information
marrts authored and Levi-Armstrong committed Mar 7, 2024
1 parent 0fae365 commit 515db21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tesseract_motion_planners/core/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ bool contactCheckProgram(std::vector<tesseract_collision::ContactResultMap>& con
// Grab the first waypoint to get the joint names
const auto& joint_names = getJointNames(mi.front().get().as<MoveInstructionPoly>().getWaypoint());
traj_contacts =
std::make_unique<tesseract_collision::ContactTrajectoryResults>(joint_names, static_cast<int>(program.size()));
std::make_unique<tesseract_collision::ContactTrajectoryResults>(joint_names, static_cast<int>(mi.size()));
}

contacts.clear();
Expand Down Expand Up @@ -625,7 +625,7 @@ bool contactCheckProgram(std::vector<tesseract_collision::ContactResultMap>& con
// Grab the first waypoint to get the joint names
const auto& joint_names = getJointNames(mi.front().get().as<MoveInstructionPoly>().getWaypoint());
traj_contacts =
std::make_unique<tesseract_collision::ContactTrajectoryResults>(joint_names, static_cast<int>(program.size()));
std::make_unique<tesseract_collision::ContactTrajectoryResults>(joint_names, static_cast<int>(mi.size()));
}

contacts.clear();
Expand Down

0 comments on commit 515db21

Please sign in to comment.