OneWheelType with access via varialbe and enums. More...
Public Member Functions | |
OneWheelType (double steering, double revolute) | |
const double & | revol () const |
double & | revol () |
const double & | steer () const |
double & | steer () |
Public Member Functions inherited from tuw::StateArrayScoped< StateWheel > | |
virtual StateSPtr | cloneState () const override |
Clone-to-base-class-ptr function. More... | |
std::shared_ptr< StateArrayScoped< StateWheel > > | cloneStateExt () const |
Clone-to-this-class-ptr function. More... | |
StateArrayScoped & | operator= (const StateArrayScoped &)=default |
StateArrayScoped & | operator= (StateArrayScoped &&)=default |
StateArrayScoped (State *_parent) | |
StateArrayScoped () | |
StateArrayScoped (const StateArrayScoped &)=default | |
StateArrayScoped (StateArrayScoped &&)=default | |
double & | value () |
Scoped access (compile-time) to the values of the state object. More... | |
const double & | value () const |
Const scoped access (compile-time) to the values of the state object. More... | |
virtual | ~StateArrayScoped ()=default |
Public Member Functions inherited from tuw::StateArray< asInt(StateWheel::ENUM_SIZE)> | |
StateArray & | operator= (const StateArray &)=default |
StateArray & | operator= (StateArray &&)=default |
StateArray (State *_parent) | |
StateArray () | |
StateArray (const StateArray &)=default | |
StateArray (StateArray &&)=default | |
virtual double & | value (const std::size_t &_i) override |
Access state variable based on index _i. More... | |
virtual const double & | value (const std::size_t &_i) const override |
Const access state variable based on index _i. More... | |
std::array< double, N > & | valuesArray () |
Reference to the state variables array. More... | |
const std::array< double, N > & | valuesArray () const |
Const reference to the variables array. More... | |
virtual size_t | valueSize () const override |
Size of the state variables. More... | |
virtual | ~StateArray ()=default |
Public Member Functions inherited from tuw::State | |
void | fromEIGENVec (const Eigen::VectorXd &_vec) |
Copies all values from an Eigen vector. The valueSize of the State object has to be equal with the Eigen vector size. More... | |
void | fromSTLVec (const std::vector< double > &_vec) |
Copies all values from an STL vector. The valueSize of the State object has to be equal with the STL vector size. More... | |
State & | operator= (const State &)=default |
State & | operator= (State &&)=default |
virtual void | resize (const size_t &_i) |
Resizes the array. More... | |
State (State *_parent) | |
State () | |
State (const State &)=default | |
State (State &&)=default | |
virtual StateSPtr & | state (const std::size_t &_i) |
Access sub-state based on index _i. More... | |
virtual size_t | stateSize () const |
Size of the sub-states. More... | |
void | toEIGENVec (Eigen::VectorXd &_vec) |
Converts all the array values to an Eigen vector. More... | |
void | toSTLVec (std::vector< double > &_vec) |
Converts all the array values to an STL vector. More... | |
virtual void | updateSize () |
Performs internal manipulation when any of the underlying arrays are being resized. More... | |
virtual | ~State ()=default |
Additional Inherited Members | |
Static Public Member Functions inherited from tuw::State | |
static std::vector< double > & | minus (State &_lhs, State &_rhs, std::vector< double > &_ans) |
Performs substraction. Left and right operand are required to have the same valueSize. More... | |
static Eigen::VectorXd & | minus (State &_lhs, State &_rhs, Eigen::VectorXd &_ans) |
Performs substraction. Left and right operand are required to have the same valueSize. More... | |
static State & | minus (State &_lhs, State &_rhs, State &_ans) |
Performs substraction. Answer variable, left operand and right operand are required to have the same valueSize. More... | |
static std::vector< double > & | plus (State &_lhs, State &_rhs, std::vector< double > &_ans) |
Performs addition. Left and right operand are required to have the same valueSize. More... | |
static Eigen::VectorXd & | plus (State &_lhs, State &_rhs, Eigen::VectorXd &_ans) |
Performs addition. Left and right operand are required to have the same valueSize. More... | |
static State & | plus (State &_lhs, State &_rhs, State &_ans) |
Performs addition. Answer variable, left operand and right operand are required to have the same valueSize. More... | |
Protected Member Functions inherited from tuw::State | |
void | callRootUpdateSize () |
Calls (if present) the parent updateSize procedure. Otherwise performs root updateSize. More... | |
Protected Attributes inherited from tuw::StateArray< asInt(StateWheel::ENUM_SIZE)> | |
std::array< double, N > | values_ |
State array container. More... | |
Protected Attributes inherited from tuw::State | |
State * | parent_ |
Pointer to the parent State structure. More... | |
OneWheelType with access via varialbe and enums.
Definition at line 53 of file demo_state.cpp.
|
inline |
Definition at line 57 of file demo_state.cpp.
|
inline |
Definition at line 65 of file demo_state.cpp.
|
inline |
Definition at line 73 of file demo_state.cpp.
|
inline |
Definition at line 61 of file demo_state.cpp.
|
inline |
Definition at line 69 of file demo_state.cpp.