Go to the documentation of this file. 1 #ifndef AIKIDO_STATESPACE_REALVECTORSTATESPACE_HPP_
2 #define AIKIDO_STATESPACE_REALVECTORSTATESPACE_HPP_
71 explicit R(
int dimension);
85 Eigen::Map<const VectorNd>
getValue(
const State* _state)
const;
171 #endif // ifndef AIKIDO_STATESPACE_REALVECTORSTATESPACE_HPP_
Represents a N-dimensional real vector space with vector addition as the group operation.
Definition: Rn.hpp:18
void freeStateInBuffer(StateSpace::State *_state) const override
Free a state previously created by allocateStateInBuffer.
Definition: Rn-impl.hpp:189
ScopedState createState() const
Helper function to create a ScopedState.
Definition: Rn-impl.hpp:120
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: Rn-impl.hpp:180
Eigen::Map< VectorNd > getMutableValue(State *_state) const
Gets the mutable value stored in a Rn::State.
Definition: Rn-impl.hpp:137
static constexpr int DimensionAtCompileTime
Definition: Rn.hpp:25
Eigen::Map< const VectorNd > getValue(const State *_state) const
Gets the real vector stored in a State.
Definition: Rn-impl.hpp:147
void print(const StateSpace::State *_state, std::ostream &_os) const override
Print the n-dimensional vector represented by the state Format: [x_1, x_2, ..., x_n].
Definition: Rn-impl.hpp:287
void logMap(const StateSpace::State *_in, Eigen::VectorXd &_tangent) const override
Log mapping of Lie group element to a Lie algebra element.
Definition: Rn-impl.hpp:276
void compose(const StateSpace::State *_state1, const StateSpace::State *_state2, StateSpace::State *_out) const override
Lie group operation for this StateSpace.
Definition: Rn-impl.hpp:196
static constexpr int DimensionAtCompileTime
Dimension of the space.
Definition: Rn.hpp:35
void getIdentity(StateSpace::State *_out) const override
Gets the identity element for this Lie group, such that:
Definition: Rn-impl.hpp:224
int mDimension
Dimension of the real vector space.
Definition: Rn.hpp:156
R()
Constructs a N dimensional real vector space only when the dimension is can be known in compile time.
Definition: Rn-impl.hpp:84
Represents a Lie group and its associated Lie algebra, i.e.
Definition: StateSpace.hpp:33
void copyState(const StateSpace::State *_source, StateSpace::State *_destination) const override
Copy a state.
Definition: Rn-impl.hpp:248
std::size_t getDimension() const override
Get the dimension of this Lie group.
Definition: Rn-impl.hpp:214
ScopedState cloneState(const StateSpace::State *stateIn) const
Creates an identical clone of stateIn.
Definition: Rn-impl.hpp:127
virtual void compose(const State *_state1, const State *_state2, State *_out) const =0
Lie group operation for this StateSpace.
Point in a R<N>.
Definition: Rn.hpp:22
void getInverse(const StateSpace::State *_in, StateSpace::State *_out) const override
Gets the inverse of _in in this Lie group, such that:
Definition: Rn-impl.hpp:233
Definition: StateSpace.hpp:167
void expMap(const Eigen::VectorXd &_tangent, StateSpace::State *_out) const override
Exponential mapping of Lie algebra element to a Lie group element.
Definition: Rn-impl.hpp:258
std::size_t getStateSizeInBytes() const override
Gets the size of a State, in bytes.
Definition: Rn-impl.hpp:173
StateHandle for a Rn.
Definition: Rn-impl.hpp:27
Eigen::Matrix< double, N, 1 > VectorNd
Definition: Rn.hpp:37
void setValue(State *_state, const VectorNd &_value) const
Sets the real vector stored in a State.
Definition: Rn-impl.hpp:157