Eigen::Rotation2Dd toRotation(const State *state) const
Returns state as an Eigen rotation.
SO2StateHandle()
Construct and initialize to nullptr.
Definition: SO2-impl.hpp:17
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
auto getState() -> typename std::enable_if<!std::is_const< Q >::value, Q * >::type
Returns the State.
Definition: StateHandle-impl.hpp:49
SO2StateHandle(const StateSpace *_space, QualifiedState *_state)
Construct a handle for _state in _space.
Definition: SO2-impl.hpp:25
void fromRotation(const Eigen::Rotation2Dd &rotation)
Sets state given an Eigen transformation.
Definition: SO2-impl.hpp:53
StateHandle for a SO2.
Definition: SO2-impl.hpp:9
double toAngle() const
Returns angle corresponding to the state.
Definition: SO2-impl.hpp:31
double toAngle(const State *state) const
Returns state as a rotation angle in (-pi, pi].
const StateSpace * getStateSpace() const
Returns the state space that created this state.
Definition: StateHandle-impl.hpp:66
void fromAngle(double angle)
Sets state given a rotation angle.
Definition: SO2-impl.hpp:39
The two-dimensional special Euclidean group SE(2), i.e.
Definition: SE2.hpp:19
Wrap a State with its StateSpace to provide convenient accessor methods.
Definition: StateHandle.hpp:16
void fromAngle(State *state, double angle) const
Sets state from a rotation angle in (-inf, inf).
_QualifiedState QualifiedState
Definition: StateHandle.hpp:20
void fromRotation(State *state, const Eigen::Rotation2Dd &rotation) const
Sets state from an Eigen rotation.
Eigen::Rotation2Dd toRotation() const
Returns the Eigen transformation corresponding to state.
Definition: SO2-impl.hpp:45
The two-dimensional special orthogonal group SO(2), i.e.
Definition: SO2.hpp:18
typename StateSpace::State State
Definition: StateHandle.hpp:22