13 #include <ompl/control/planners/kpiece/KPIECE1.h> 
   14 #include <ompl/control/planners/rrt/RRT.h> 
   15 #include <ompl/tools/benchmark/Benchmark.h> 
   16 #include <omplapp/apps/KinematicCarPlanning.h> 
   17 #include <omplapp/config.h> 
   18 #include <boost/math/constants/constants.hpp> 
   25     base::StateSpacePtr SE2(setup.getStateSpace());
 
   43     goal->setYaw(boost::math::constants::pi<double>());
 
   46     setup.setStartAndGoalStates(start, goal, .1);
 
   51     setup.setPlanner(std::make_shared<control::KPIECE1>(setup.getSpaceInformation()));
 
   52     std::vector<double> cs(2);
 
   55     setup.getStateSpace()->getDefaultProjection()->setCellSizes(cs);
 
   64         path.printAsMatrix(std::cout);
 
   65         if (!setup.haveExactSolutionPath())
 
   67             std::cout << 
"Solution is approximate. Distance to actual goal is " 
   68                       << setup.getProblemDefinition()->getSolutionDifference() << std::endl;
 
   77     b.addPlanner(std::make_shared<control::RRT>(setup.getSpaceInformation()));
 
   78     b.addPlanner(std::make_shared<control::KPIECE1>(setup.getSpaceInformation()));
 
   80     b.saveResultsToFile();
 
   83 int main(
int argc, 
char ** )
 
   87     kinematicCarSetup(regularCar);
 
   93         kinematicCarBenchmark(regularCar);
 
   95         kinematicCarDemo(regularCar);