ompl::control::RRT::RRT(const SpaceInformationPtr &si) : base::Planner(si, "RRT") { specs_.approximateSolutions = true; siC_ = si.get(); Planner::declareParam<double>("goal_bias", this, &RRT::setGoalBias, &RRT::getGoalBias, "0.:.05:1."); Planner::declareParam<bool>("intermediate_states", this, &RRT::setIntermediateStates, &RRT::getIntermediateStates); }
ompl::control::EST::EST(const SpaceInformationPtr &si) : base::Planner(si, "EST") { specs_.approximateSolutions = true; siC_ = si.get(); Planner::declareParam<double>("range", this, &EST::setRange, &EST::getRange, "0.:1.:10000."); Planner::declareParam<double>("goal_bias", this, &EST::setGoalBias, &EST::getGoalBias, "0.:.05:1."); }
ompl::control::SST::SST(const SpaceInformationPtr &si) : base::Planner(si, "SST") { specs_.approximateSolutions = true; siC_ = si.get(); prevSolution_.clear(); prevSolutionControls_.clear(); prevSolutionSteps_.clear(); goalBias_ = 0.05; selectionRadius_ = 0.2; pruningRadius_ = 0.1; Planner::declareParam<double>("goal_bias", this, &SST::setGoalBias, &SST::getGoalBias, "0.:.05:1."); Planner::declareParam<double>("selection_radius", this, &SST::setSelectionRadius, &SST::getSelectionRadius, "0.:.1:100"); Planner::declareParam<double>("pruning_radius", this, &SST::setPruningRadius, &SST::getPruningRadius, "0.:.1:100"); }
ompl::control::KPIECE1::KPIECE1(const SpaceInformationPtr &si) : base::Planner(si, "KPIECE1") { specs_.approximateSolutions = true; siC_ = si.get(); nCloseSamples_ = 30; goalBias_ = 0.05; selectBorderFraction_ = 0.8; badScoreFactor_ = 0.45; goodScoreFactor_ = 0.9; tree_.grid.onCellUpdate(computeImportance, NULL); Planner::declareParam<double>("goal_bias", this, &KPIECE1::setGoalBias, &KPIECE1::getGoalBias); Planner::declareParam<double>("border_fraction", this, &KPIECE1::setBorderFraction, &KPIECE1::getBorderFraction); Planner::declareParam<unsigned int>("max_close_samples", this, &KPIECE1::setMaxCloseSamplesCount, &KPIECE1::getMaxCloseSamplesCount); Planner::declareParam<double>("bad_score_factor", this, &KPIECE1::setBadCellScoreFactor, &KPIECE1::getBadCellScoreFactor); Planner::declareParam<double>("good_score_factor", this, &KPIECE1::setGoodCellScoreFactor, &KPIECE1::getGoodCellScoreFactor); }
ompl::control::PID::PID(const SpaceInformationPtr &si) : base::Planner(si, "PID") { specs_.approximateSolutions = true; siC_ = si.get(); }
ompl::control::PDST::PDST(const SpaceInformationPtr &si) : base::Planner(si, "PDST") , siC_(si.get()) { Planner::declareParam<double>("goal_bias", this, &PDST::setGoalBias, &PDST::getGoalBias, "0.:.05:1."); }