Bench-MR
A Motion Planning Benchmark for Wheeled Mobile Robots
TimedResult.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <ompl/base/Planner.h>
4
5#include "utils/Stopwatch.hpp"
6
7namespace ob = ompl::base;
8
9class TimedResult : public Stopwatch {
10 public:
11 ompl::geometric::PathGeometric trajectory;
12 ob::PlannerStatus status;
13
14 explicit TimedResult(
15 const ompl::geometric::PathGeometric &trajectory =
16 ompl::geometric::PathGeometric(global::settings.ompl.space_info),
17 double time = 0)
19 this->elapsed_ = time;
20 }
21};
Stopwatch implementation to measure elapsed time.
Definition: Stopwatch.hpp:8
double elapsed_
Definition: Stopwatch.hpp:58
Definition: TimedResult.hpp:9
ob::PlannerStatus status
Definition: TimedResult.hpp:12
ompl::geometric::PathGeometric trajectory
Definition: TimedResult.hpp:11
TimedResult(const ompl::geometric::PathGeometric &trajectory=ompl::geometric::PathGeometric(global::settings.ompl.space_info), double time=0)
Definition: TimedResult.hpp:14
static PlannerSettings::GlobalSettings settings
Definition: PlannerSettings.h:699