Skip to content

Commit fa22b52

Browse files
committed
Add cartesian waypoints to fixed indices
1 parent cf0a863 commit fa22b52

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
@@ -288,7 +288,9 @@ TrajOptMotionPlanner::createProblem(const PlannerRequest& request) const
288288
seed_states.push_back(request.env_state.getJointValues(joint_names));
289289
}
290290

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

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

301-
/** @todo If fixed cartesian and not term_type cost add as fixed */
301+
// Add to fixed indices
302+
if (!cwp.isToleranced()) /** @todo Should not make fixed if term_type is cost */
303+
fixed_steps.push_back(i);
302304
}
303305
else if (move_instruction.getWaypoint().isJointWaypoint())
304306
{

0 commit comments

Comments
 (0)