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> 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);
A class to facilitate planning for a simple blimp model.
Definition of a scoped state.
A shared pointer wrapper for ompl::base::StateSpace.
Definition of a control path.
Main namespace. Contains everything in this library.
A space to allow the composition of state spaces.
The lower and upper bounds for an Rn space.