Go to the documentation of this file. 1 #ifndef AIKIDO_STATESPACE_SE2STATESPACE_HPP_
2 #define AIKIDO_STATESPACE_SE2STATESPACE_HPP_
3 #include <Eigen/Geometry>
26 = Eigen::Transform<double, 2, Eigen::Isometry, Eigen::DontAlign>;
144 #endif // ifndef AIKIDO_STATESPACE_SE2STATESPACE_HPP_
ScopedState createState() const
Helper function to create a ScopedState.
void expMap(const Eigen::VectorXd &_tangent, StateSpace::State *_out) const override
Exponential mapping of Lie algebra element to a Lie group element.
std::size_t getStateSizeInBytes() const override
Gets the size of a State, in bytes.
void getInverse(const StateSpace::State *_in, StateSpace::State *_out) const override
Gets the inverse of _in in this Lie group, such that:
Isometry2d mTransform
Definition: SE2.hpp:49
Format of serialized trajectory in YAML.
Definition: algorithm.hpp:4
void freeStateInBuffer(StateSpace::State *_state) const override
Free a state previously created by allocateStateInBuffer.
State::Isometry2d Isometry2d
Definition: SE2.hpp:62
void copyState(const StateSpace::State *_source, StateSpace::State *_destination) const override
Copy a state.
ScopedState cloneState(const StateSpace::State *stateIn) const
Creates an identical clone of stateIn.
StateHandle for a SE2.
Definition: SE2-impl.hpp:9
StateSpace::State * allocateStateInBuffer(void *_buffer) const override
Create a new state in a pre-allocated buffer.
The two-dimensional special Euclidean group SE(2), i.e.
Definition: SE2.hpp:19
SE2()=default
Constructs a state space representing SE(2).
void compose(const StateSpace::State *_state1, const StateSpace::State *_state2, StateSpace::State *_out) const override
Lie group operation for this StateSpace.
const Isometry2d & getIsometry(const State *_state) const
Gets value as an Eigen transformation object.
Represents a Lie group and its associated Lie algebra, i.e.
Definition: StateSpace.hpp:33
void getIdentity(StateSpace::State *_out) const override
Gets the identity element for this Lie group, such that:
void logMap(const StateSpace::State *_state, Eigen::VectorXd &_tangent) const override
Log mapping of Lie group element to a Lie algebra element.
virtual void compose(const State *_state1, const State *_state2, State *_out) const =0
Lie group operation for this StateSpace.
void setIsometry(State *_state, const Isometry2d &_transform) const
Sets value to an Eigen transfomation object.
State()
Constructs the identity element.
Eigen::Transform< double, 2, Eigen::Isometry, Eigen::DontAlign > Isometry2d
Definition: SE2.hpp:26
Definition: StateSpace.hpp:167
std::size_t getDimension() const override
Get the dimension of this Lie group.
const Isometry2d & getIsometry() const
Gets value as an Eigen transformation object.
void print(const StateSpace::State *_state, std::ostream &_os) const override
Print the state. Format: [x, y, theta].
void setIsometry(const Isometry2d &_transform)
Sets value to an Eigen transfomation object.