1 #ifndef AIKIDO_STATESPACE_SO2STATESPACE_HPP_ 2 #define AIKIDO_STATESPACE_SO2STATESPACE_HPP_ 4 #include <Eigen/Geometry> 6 #include "aikido/statespace/ScopedState.hpp" 7 #include "aikido/statespace/StateSpace.hpp" 10 namespace statespace {
121 explicit State(
double angle = 0.0);
151 #include "detail/SO2-impl.hpp" 153 #endif // ifndef AIKIDO_STATESPACE_SO2STATESPACE_HPP_ The two-dimensional special orthogonal group SO(2), i.e.
Definition: SO2.hpp:18
std::size_t getStateSizeInBytes() const override
Gets the size of a State, in bytes.
Definition: SO2.cpp:81
void copyState(const StateSpace::State *source, StateSpace::State *destination) const override
Copy a state.
Definition: SO2.cpp:140
StateSpace::State * allocateStateInBuffer(void *buffer) const override
Create a new state in a pre-allocated buffer.
Definition: SO2.cpp:87
CRTP RAII wrapper for a StateHandle.
Definition: ScopedState.hpp:15
virtual void compose(const State *_state1, const State *_state2, State *_out) const =0
Lie group operation for this StateSpace.
void expMap(const Eigen::VectorXd &tangent, StateSpace::State *out) const override
Exponential mapping of Lie algebra element to a Lie group element.
Definition: SO2.cpp:149
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
void fromAngle(State *state, double angle) const
Sets state from a rotation angle in (-inf, inf).
Definition: SO2.cpp:63
A tuple of states where the i-th state is from the i-th subspace.
Definition: CartesianProduct.hpp:162
void print(const StateSpace::State *state, std::ostream &os) const override
Print the angle represented by the state.
Definition: SO2.cpp:176
void logMap(const StateSpace::State *in, Eigen::VectorXd &tangent) const override
Log mapping of Lie group element to a Lie algebra element.
Definition: SO2.cpp:166
ScopedState createState() const
Helper function to create a ScopedState.
Definition: SO2.cpp:42
double toAngle(const State *state) const
Returns state as a rotation angle in (-pi, pi].
Definition: SO2.cpp:57
std::size_t getDimension() const override
Get the dimension of this Lie group.
Definition: SO2.cpp:134
void fromRotation(State *state, const Eigen::Rotation2Dd &rotation) const
Sets state from an Eigen rotation.
Definition: SO2.cpp:75
Represents a Lie group and its associated Lie algebra, i.e.
Definition: StateSpace.hpp:33
ScopedState cloneState(const StateSpace::State *stateIn) const
Creates an identical clone of stateIn.
Definition: SO2.cpp:48
StateHandle for a SO2.
Definition: SO2-impl.hpp:9
Eigen::Rotation2Dd toRotation(const State *state) const
Returns state as an Eigen rotation.
Definition: SO2.cpp:69
SO2()=default
Constructs a state space representing SO(2).