3#include <ompl/control/PathControl.h>
4#include <ompl/geometric/PathGeometric.h>
9template <
class METRIC,
bool MoreIsBetter = false>
14 static double evaluate(
const ompl::geometric::PathGeometric &trajectory,
16 return METRIC::evaluateMetric(trajectory, dt);
19 static double evaluate(
const ompl::control::PathControl &trajectory,
21 return METRIC::evaluateMetric(trajectory, dt);
31 static int compare(
const ompl::geometric::PathGeometric &a,
32 const ompl::geometric::PathGeometric &b,
double dt = 0.1) {
35 if (MoreIsBetter && va > vb)
return 1;
46 static int compare(
const ompl::control::PathControl &a,
47 const ompl::control::PathControl &b,
double dt = 0.1) {
50 if (MoreIsBetter && va > vb)
return 1;
Definition: TrajectoryMetric.h:10
static double evaluate(const ompl::geometric::PathGeometric &trajectory, double dt=0.1)
Definition: TrajectoryMetric.h:14
static double evaluate(const ompl::control::PathControl &trajectory, double dt=0.1)
Definition: TrajectoryMetric.h:19
static constexpr double ComparisonTolerance
Definition: TrajectoryMetric.h:12
static int compare(const ompl::control::PathControl &a, const ompl::control::PathControl &b, double dt=0.1)
Compares two trajectories by evaluating this metric on them.
Definition: TrajectoryMetric.h:46
static int compare(const ompl::geometric::PathGeometric &a, const ompl::geometric::PathGeometric &b, double dt=0.1)
Compares two trajectories by evaluating this metric on them.
Definition: TrajectoryMetric.h:31