File command_types.hpp

namespace o80

Enums

enum Type

! commands type, used by the add_commands methods of FrontEnd.

  • duration : will try to reach target state over the given duration

  • speed : will try to reach target state using the specified speed

  • direct : will request to set the target state direcly

  • iteration: will request for the target state to be reached at the provided backend iteration.

Values:

enumerator DURATION
enumerator SPEED
enumerator DIRECT
enumerator ITERATION
class Direct
#include <command_types.hpp>

Private Functions

template<class Archive>
inline void serialize(Archive &archive)
class Duration_us
#include <command_types.hpp>

! for interpolating toward the desired state during a specified duration

Public Functions

inline Duration_us()
inline Duration_us(long int _value)
template<class Archive>
inline void serialize(Archive &archive)

Public Members

long int value

Public Static Functions

static inline Duration_us seconds(long int value)
static inline Duration_us milliseconds(long int value)
static inline Duration_us microseconds(long int value)
static inline Duration_us nanoseconds(long int value)
class Iteration
#include <command_types.hpp>

! for interpolating toward the desired state such at reaching it a the specified iteration

Public Functions

inline Iteration()
inline Iteration(long int iteration)
inline Iteration(long int iteration, bool _relative)
inline Iteration(long int iteration, bool _relative, bool _do_reset)
inline void reset()
template<class Archive>
inline void serialize(Archive &archive)

Public Members

long int value
bool relative
bool do_reset
class Speed
#include <command_types.hpp>

! for interpolating toward the desired state using a specified velocity.

Public Functions

inline Speed()
inline Speed(double _value)
template<class Archive>
inline void serialize(Archive &archive)

Public Members

double value

Public Static Functions

static inline Speed per_second(double value)
static inline Speed per_microsecond(double value)
static inline Speed per_millisecond(double value)
static inline Speed per_nanosecond(double value)