25 auto fetch = std::make_shared<FetchRobot>();
28 fetch->initialize(
false);
32 options.
metrics = Profiler::WAYPOINTS | Profiler::CORRECT | Profiler::LENGTH;
33 Experiment experiment(
"fetch_scenes", options, 30.0, 2);
39 const auto &scene_file =
40 log::format(
"package://robowflex_library/yaml/fetch_scenes/scene_vicon%1$04d.yaml", i);
41 const auto &request_file =
42 log::format(
"package://robowflex_library/yaml/fetch_scenes/request%1$04d.yaml", i);
46 if (not
scene->fromYAMLFile(scene_file))
48 RBX_ERROR(
"Failed to read file: %s for scene", scene_file);
53 auto planner = std::make_shared<OMPL::FetchOMPLPipelinePlanner>(
fetch);
54 planner->initialize();
57 auto request = std::make_shared<robowflex::MotionRequestBuilder>(planner,
GROUP);
58 if (not request->fromYAMLFile(request_file))
60 RBX_ERROR(
"Failed to read file: %s for request", request_file);
64 request->setConfig(
"PRMstar");
70 auto dataset = experiment.benchmark(1);
73 output.dump(*dataset);
A helper class for benchmarking that controls running multiple queries.
Benchmark outputter that saves results into OMPL benchmarking log files. If ompl_benchmark_statistics...
RAII-pattern for starting up ROS.
static const std::string GROUP
#define RBX_ERROR(fmt,...)
Output a error logging message.
std::string format(const std::string &fmt, Args &&... args)
Recursion base case, return string form of formatted arguments.
Functions for loading and animating scenes in Blender.
uint32_t metrics
Bitmask of which metrics to compute after planning.