File states.hpp¶
-
namespace o80
-
template<int NB_ACTUATORS, class STATE>
class States - #include <states.hpp>
! States is a container of instances of NB_ACTUATORS instances of STATE.
Expected usage is that STATE encapsulate the state of a specific actuator, hence States represents the full robot state.
- tparam NB_ACTUATOR
the number of actuators of the robot
- tparam STATE
class representing an actuator state
Public Functions
-
inline States()
-
template<class Archive>
inline void serialize(Archive &archive)
-
void set(int actuator, STATE state)
! set the state for the specified actuator
-
const STATE &get(int actuator) const
! returns the state of the specified actuator
Public Members
-
std::array<STATE, NB_ACTUATORS> values
-
template<int NB_ACTUATORS, class STATE>