File command.hppΒΆ

namespace o80
template<class STATE>
class Command
#include <command.hpp>

Public Functions

Command()
Command(const Command<STATE> &other)
Command(Command<STATE> &&other) noexcept
Command<STATE> &operator=(const Command<STATE> &other)
Command<STATE> &operator=(Command<STATE> &&other) noexcept
Command(long int pulse_id, STATE target_state, Speed speed, int dof, Mode mode)
Command(long int pulse_id, STATE target_state, Duration_us duration_us, int dof, Mode mode)
Command(long int pulse_id, STATE target_state, Iteration iteration, int dof, Mode mode)
Command(long int pulse_id, STATE target_state, int dof, Mode mode)
int get_id() const
const STATE &get_target_state() const
int get_dof() const
Mode get_mode() const
CommandType &get_command_type()
long int get_pulse_id() const
std::string to_string() const
void print() const
void convert_to_iteration(long int current_iteration, const STATE &current_state, double backend_period_us)
bool operator<(const Command &other) const
bool operator>(const Command &other) const
template<class Archive>
inline void serialize(Archive &archive)
const CommandStatus<STATE> &get_command_status() const
CommandStatus<STATE> &get_mutable_command_status()

Public Static Functions

static void init_id(std::string segment_id, std::string object_id)

Private Functions

void convert_to_iteration(const Duration_us &duration, long int current_iteration, double backend_period_us)
void convert_to_iteration(const Speed &speed, long int current_iteration, const STATE &current_state, double backend_period_us)
void copy(const Command<STATE> &from, bool full)

Private Members

long int pulse_id_
STATE target_state_
int id_
Mode mode_
int dof_
CommandType command_type_
CommandStatus<STATE> command_status_

Private Static Functions

static int get_next_id()

Private Static Attributes

static std::mutex mutex
static int id