Aikido
|
Computes the shortest distance between two angles in SO(2) More...
#include <aikido/distance/SO2Angular.hpp>
Public Member Functions | |
SO2Angular (std::shared_ptr< const statespace::SO2 > _space) | |
Constructor. More... | |
statespace::ConstStateSpacePtr | getStateSpace () const override |
Get the StateSpace associated with this metric. More... | |
double | distance (const statespace::StateSpace::State *_state1, const statespace::StateSpace::State *_state2) const override |
Computes shortest distance between two angles. More... | |
![]() | |
virtual | ~DistanceMetric ()=default |
Destructor. More... | |
Private Attributes | |
std::shared_ptr< const statespace::SO2 > | mStateSpace |
Computes the shortest distance between two angles in SO(2)
|
explicit |
Constructor.
_space | The SO2 this distance metric operates on |
|
overridevirtual |
Computes shortest distance between two angles.
(return value between 0 and pi)
_state1 | The first state (type: SO2::State) |
_state2 | The second state (type: SO2::State) |
Implements aikido::distance::DistanceMetric.
|
overridevirtual |
Get the StateSpace associated with this metric.
Implements aikido::distance::DistanceMetric.
|
private |