Skip to content

Commit c55e4c5

Browse files
committed
Add cartesian waypoints to fixed indices
1 parent febcd0f commit c55e4c5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tesseract_motion_planners/trajopt/src/trajopt_motion_planner.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ TrajOptMotionPlanner::createProblem(const PlannerRequest& request) const
276276
seed_states.push_back(request.env_state.getJointValues(joint_names));
277277
}
278278

279-
/** @todo If fixed cartesian and not term_type cost add as fixed */
279+
// Add to fixed indices
280+
if (!cwp.isToleranced()) /** @todo Should not make fixed if term_type is cost */
281+
fixed_steps.push_back(i);
280282
}
281283
else if (move_instruction.getWaypoint().isJointWaypoint())
282284
{

tesseract_motion_planners/trajopt_ifopt/src/trajopt_ifopt_motion_planner.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,9 @@ std::shared_ptr<TrajOptIfoptProblem> TrajOptIfoptMotionPlanner::createProblem(co
290290
// Apply profile
291291
cur_plan_profile->apply(*problem, cwp, move_instruction, composite_mi, active_links, i);
292292

293-
/** @todo If fixed cartesian and not term_type cost add as fixed */
293+
// Add to fixed indices
294+
if (!cwp.isToleranced()) /** @todo Should not make fixed if term_type is cost */
295+
fixed_steps.push_back(i);
294296
}
295297
else if (move_instruction.getWaypoint().isJointWaypoint())
296298
{

0 commit comments

Comments
 (0)