Go to the documentation of this file.
7 extern template class REuclidean<0>;
9 extern template class REuclidean<1>;
11 extern template class REuclidean<2>;
13 extern template class REuclidean<3>;
15 extern template class REuclidean<6>;
17 extern template class REuclidean<Eigen::Dynamic>;
22 : mStateSpace(std::move(_space))
26 throw std::invalid_argument(
"Rn is nullptr.");
43 auto v1 = mStateSpace->getValue(
45 auto v2 = mStateSpace->getValue(
47 return (v2 - v1).norm();
Represents a N-dimensional real vector space with vector addition as the group operation.
Definition: Rn.hpp:18
statespace::ConstStateSpacePtr getStateSpace() const override
Get the StateSpace associated with this metric.
Definition: RnEuclidean-impl.hpp:32
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
std::shared_ptr< const StateSpace > ConstStateSpacePtr
Definition: StateSpace.hpp:15
REuclidean(std::shared_ptr< const statespace::R< N >> _space)
Constructor.
Definition: RnEuclidean-impl.hpp:21
double distance(const statespace::StateSpace::State *_state1, const statespace::StateSpace::State *_state2) const override
Computes Euclidean distance between two states.
Definition: RnEuclidean-impl.hpp:39
Point in a R<N>.
Definition: Rn.hpp:22
std::shared_ptr< const statespace::R< N > > mStateSpace
Definition: RnEuclidean.hpp:30
Definition: StateSpace.hpp:167