13 #include <ompl/geometric/planners/rrt/RRTConnect.h>
14 #include <omplapp/apps/AppBase.h>
15 #include <omplapp/apps/SE3MultiRigidBodyPlanning.h>
16 #include <omplapp/config.h>
26 std::string robot_fname = std::string(OMPLAPP_RESOURCE_DIR) +
"/3D/cubicles_robot.dae";
27 std::string env_fname = std::string(OMPLAPP_RESOURCE_DIR) +
"/3D/cubicles_env.dae";
28 setup.setRobotMesh(robot_fname);
29 setup.addRobotMesh(robot_fname);
30 setup.setEnvironmentMesh(env_fname);
41 start1->rotation().setIdentity();
48 goal1->rotation().setIdentity();
55 start2->rotation().setIdentity();
62 goal2->rotation().setIdentity();
65 setup.setStartAndGoalStates(start, goal);
68 setup.getSpaceInformation()->setStateValidityCheckingResolution(0.01);
71 setup.setPlanner(std::make_shared<geometric::RRTConnect>(setup.getSpaceInformation()));
80 if (setup.haveExactSolutionPath())
83 setup.simplifySolution();
84 setup.getSolutionPath().printAsMatrix(std::cout);
88 std::cout <<
"Exact solution not found" << std::endl;