Skip to content

Commit

Permalink
Add cartesian waypoints to fixed indices
Browse files Browse the repository at this point in the history
  • Loading branch information
rjoomen committed Dec 14, 2023
1 parent 788feaa commit c3c040d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ TrajOptMotionPlanner::createProblem(const PlannerRequest& request) const
seed_states.push_back(request.env_state.getJointValues(joint_names));
}

/** @todo If fixed cartesian and not term_type cost add as fixed */
// Add to fixed indices
if (!cwp.isToleranced()) /** @todo Should not make fixed if term_type is cost */
fixed_steps.push_back(i);
}
else if (move_instruction.getWaypoint().isJointWaypoint())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ std::shared_ptr<TrajOptIfoptProblem> TrajOptIfoptMotionPlanner::createProblem(co
// Apply profile
cur_plan_profile->apply(*problem, cwp, move_instruction, composite_mi, active_links, i);

/** @todo If fixed cartesian and not term_type cost add as fixed */
// Add to fixed indices
if (!cwp.isToleranced()) /** @todo Should not make fixed if term_type is cost */
fixed_steps.push_back(i);
}
else if (move_instruction.getWaypoint().isJointWaypoint())
{
Expand Down

0 comments on commit c3c040d

Please sign in to comment.