19 int main(
int argc,
char **argv)
25 auto wam7 = std::make_shared<Robot>(
"wam7");
26 wam7->initialize(
"package://barrett_model/robots/wam7_bhand.urdf.xacro",
27 "package://barrett_wam_moveit_config/config/wam7_hand.srdf",
28 "package://barrett_wam_moveit_config/config/joint_limits.yaml",
29 "package://barrett_wam_moveit_config/config/kinematics.yaml"
33 wam7->loadKinematics(
"arm");
36 auto scene = std::make_shared<Scene>(wam7);
37 scene->fromOpenRAVEXMLFile(
"package://optplanners_openrave/scripts/data/envs/wam7_realistic.env.xml");
40 auto planner = std::make_shared<OMPL::OMPLPipelinePlanner>(wam7);
41 planner->initialize(
"package://barrett_wam_moveit_config/config/ompl_planning.yaml"
46 request->setStartConfiguration({0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0});
47 request->setGoalConfiguration({0.0, 1.89, 0.0, -0.3, 1.3, 0.0, 0.2});
53 Experiment experiment(
"wam7_demo", options, 5.0, 10);
59 json_output.
dump(*dataset);
62 traj_output.
dump(*dataset);
A helper class for benchmarking that controls running multiple queries.
PlanDataSetPtr benchmark(std::size_t n_threads=1) const
Run benchmarking on this experiment. Note that, for some planners, multiple threads cannot be used wi...
void addQuery(const std::string &planner_name, const SceneConstPtr &scene, const PlannerPtr &planner, const planning_interface::MotionPlanRequest &request)
Add a query to the experiment for profiling.
A benchmark outputter for storing data in a single JSON file.
void dump(const PlanDataSet &results) override
Dumps results into outfile_, and opens outfile_ if not already done so.
A shared pointer wrapper for robowflex::MotionRequestBuilder.
A helper class to build motion planning requests for a robowflex::Planner.
@ LENGTH
Length of the path.
RAII-pattern for starting up ROS.
Benchmark outputter that saves each trajectory from each run to a rosbag file.
void dump(const PlanDataSet &results) override
Dumps all trajectories in results to rosbag file file_. The topic the trajectories are saved under is...
Main namespace. Contains all library classes and functions.
Functions for loading and animating scenes in Blender.
double progress_update_rate
Update rate for progress callbacks.
uint32_t metrics
Bitmask of which metrics to compute after planning.
int main(int argc, char **argv)