Skip to content

Commit

Permalink
add support for setting interpolate_ and hybridize_ flags in ModelBas…
Browse files Browse the repository at this point in the history
…edPlanningContext via ompl_planning.yaml (moveit#2172)
  • Loading branch information
mamoll authored and v4hn committed Jun 29, 2020
1 parent a451cd6 commit 478154f
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,22 @@ void ompl_interface::ModelBasedPlanningContext::useConfig()

ompl_simple_setup_->setOptimizationObjective(objective);

// check whether the path returned by the planner should be interpolated
it = cfg.find("interpolate");
if (it != cfg.end())
{
interpolate_ = boost::lexical_cast<bool>(it->second);
cfg.erase(it);
}

// check whether solution paths from parallel planning should be hybridized
it = cfg.find("hybridize");
if (it != cfg.end())
{
hybridize_ = boost::lexical_cast<bool>(it->second);
cfg.erase(it);
}

// remove the 'type' parameter; the rest are parameters for the planner itself
it = cfg.find("type");
if (it == cfg.end())
Expand Down

0 comments on commit 478154f

Please sign in to comment.