1 #ifndef AIKIDO_STATESPACE_SO3STATESPACE_HPP_ 2 #define AIKIDO_STATESPACE_SO3STATESPACE_HPP_ 3 #include <Eigen/Geometry> 5 #include "aikido/statespace/ScopedState.hpp" 6 #include "aikido/statespace/StateSpace.hpp" 24 using Quaternion = Eigen::Quaternion<double, Eigen::DontAlign>;
34 explicit State(
const Quaternion& _quaternion);
60 using Quaternion = State::Quaternion;
139 #include "detail/SO3-impl.hpp" 141 #endif // ifndef AIKIDO_STATESPACE_SO3STATESPACE_HPP_ State()
Constructs the identity element.
void print(const StateSpace::State *_state, std::ostream &_os) const override
Print the quaternion represented by the state.
Definition: SO3.cpp:168
State in SO(3), a spatial rotation.
Definition: SO3.hpp:21
std::size_t getDimension() const override
Get the dimension of this Lie group.
Definition: SO3.cpp:117
void setQuaternion(const Quaternion &_quaternion)
Sets a state to a unit quaternion.
Definition: SO3.cpp:27
CRTP RAII wrapper for a StateHandle.
Definition: ScopedState.hpp:15
The two-dimensional special orthogonal group SO(3), i.e.
Definition: SO3.hpp:17
std::size_t getStateSizeInBytes() const override
Gets the size of a State, in bytes.
Definition: SO3.cpp:61
virtual void compose(const State *_state1, const State *_state2, State *_out) const =0
Lie group operation for this StateSpace.
void copyState(const StateSpace::State *_source, StateSpace::State *_destination) const override
Copy a state.
Definition: SO3.cpp:123
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
StateSpace::State * allocateStateInBuffer(void *_buffer) const override
Create a new state in a pre-allocated buffer.
Definition: SO3.cpp:67
A tuple of states where the i-th state is from the i-th subspace.
Definition: CartesianProduct.hpp:162
const Quaternion & getQuaternion() const
Gets a state as a unit quaternion.
Definition: SO3.cpp:21
void expMap(const Eigen::VectorXd &_tangent, StateSpace::State *_out) const override
Exponential mapping of Lie algebra element to a Lie group element.
Definition: SO3.cpp:133
ScopedState cloneState(const StateSpace::State *stateIn) const
Creates an identical clone of stateIn.
Definition: SO3.cpp:40
ScopedState createState() const
Helper function to create a ScopedState.
Definition: SO3.cpp:34
void logMap(const StateSpace::State *_in, Eigen::VectorXd &_tangent) const override
Log mapping of Lie group element to a Lie algebra element.
Definition: SO3.cpp:154
Represents a Lie group and its associated Lie algebra, i.e.
Definition: StateSpace.hpp:33
StateHandle for a SO3.
Definition: SO3-impl.hpp:9