Skip to content

Commit c3c040d

Browse files
committed
Add cartesian waypoints to fixed indices
1 parent 788feaa commit c3c040d

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
@@ -273,7 +273,9 @@ TrajOptMotionPlanner::createProblem(const PlannerRequest& request) const
273273
seed_states.push_back(request.env_state.getJointValues(joint_names));
274274
}
275275

276-
/** @todo If fixed cartesian and not term_type cost add as fixed */
276+
// Add to fixed indices
277+
if (!cwp.isToleranced()) /** @todo Should not make fixed if term_type is cost */
278+
fixed_steps.push_back(i);
277279
}
278280
else if (move_instruction.getWaypoint().isJointWaypoint())
279281
{

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
@@ -289,7 +289,9 @@ std::shared_ptr<TrajOptIfoptProblem> TrajOptIfoptMotionPlanner::createProblem(co
289289
// Apply profile
290290
cur_plan_profile->apply(*problem, cwp, move_instruction, composite_mi, active_links, i);
291291

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

0 commit comments

Comments
 (0)