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/BlimpPlanning.h>
17 #include <omplapp/config.h>
23 base::StateSpacePtr stateSpace(setup.getStateSpace());
36 start->rotation().setIdentity();
43 goal->rotation().setIdentity();
46 setup.setStartAndGoalStates(setup.getFullStateFromGeometricComponent(start),
47 setup.getFullStateFromGeometricComponent(goal), .5);
52 std::vector<double> coords;
54 std::cout <<
"\n\n***** Planning for a " << setup.getName() <<
" *****\n" << std::endl;
55 setup.setPlanner(std::make_shared<control::RRT>(setup.getSpaceInformation()));
64 path.printAsMatrix(std::cout);
66 if (!setup.haveExactSolutionPath())
68 std::cout <<
"Solution is approximate. Distance to actual goal is "
69 << setup.getProblemDefinition()->getSolutionDifference() << std::endl;
81 b.addPlanner(std::make_shared<control::RRT>(setup.getSpaceInformation()));
82 b.addPlanner(std::make_shared<control::KPIECE1>(setup.getSpaceInformation()));
84 b.saveResultsToFile();
87 int main(
int argc,
char ** )
96 blimpBenchmark(blimp);