Go to the documentation of this file. 1 #ifndef AIKIDO_DISTANCE_CARTESIANPRODUCTWEIGHTED_HPP_
2 #define AIKIDO_DISTANCE_CARTESIANPRODUCTWEIGHTED_HPP_
24 std::shared_ptr<const statespace::CartesianProduct> _space,
25 std::vector<DistanceMetricPtr> _metrics);
35 std::shared_ptr<statespace::CartesianProduct> _space,
36 std::vector<std::pair<DistanceMetricPtr, double>> _metrics);
51 std::shared_ptr<const statespace::CartesianProduct>
mStateSpace;
52 std::vector<std::pair<DistanceMetricPtr, double>>
mMetrics;
double distance(const statespace::StateSpace::State *_state1, const statespace::StateSpace::State *_state2) const override
Computes distance between two states as the weighted sum of distances between their matching subcompo...
statespace::ConstStateSpacePtr getStateSpace() const override
Get the StateSpace associated with this metric.
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
std::shared_ptr< const statespace::CartesianProduct > mStateSpace
Definition: CartesianProductWeighted.hpp:51
std::shared_ptr< const StateSpace > ConstStateSpacePtr
Definition: StateSpace.hpp:15
Implements a distance metric on a CartesianProduct.
Definition: CartesianProductWeighted.hpp:14
Implements a distance metric defined on a StateSpace.
Definition: DistanceMetric.hpp:13
Definition: StateSpace.hpp:167
std::vector< std::pair< DistanceMetricPtr, double > > mMetrics
Definition: CartesianProductWeighted.hpp:52
CartesianProductWeighted(std::shared_ptr< const statespace::CartesianProduct > _space, std::vector< DistanceMetricPtr > _metrics)
Constructor.