示例#1
0
void ompl::control::Syclop::setup()
{
    base::Planner::setup();
    if (!leadComputeFn)
        setLeadComputeFn(boost::bind(&ompl::control::Syclop::defaultComputeLead, this, _1, _2, _3));
    buildGraph();
    addEdgeCostFactor(boost::bind(&ompl::control::Syclop::defaultEdgeCost, this, _1, _2));
}
示例#2
0
文件: Syclop.cpp 项目: GrapeTec/ompl
void ompl::control::Syclop::setup()
{
    base::Planner::setup();
    if (!leadComputeFn)
        setLeadComputeFn(std::bind(&ompl::control::Syclop::defaultComputeLead, this,
            std::placeholders::_1, std::placeholders::_2, std::placeholders::_3));
    buildGraph();
    addEdgeCostFactor(std::bind(&ompl::control::Syclop::defaultEdgeCost, this,
        std::placeholders::_1, std::placeholders::_2));
}
示例#3
0
文件: Syclop.cpp 项目: ompl/ompl
void ompl::control::Syclop::setup()
{
    base::Planner::setup();
    if (!leadComputeFn)
        setLeadComputeFn([this](int startRegion, int goalRegion, std::vector<int> &lead)
                         {
                             defaultComputeLead(startRegion, goalRegion, lead);
                         });
    buildGraph();
    addEdgeCostFactor([this](int r, int s)
                      {
                          return defaultEdgeCost(r, s);
                      });
}