File standalone.hxx

Defines

TEMPLATE_STANDALONE
STANDALONE

Functions

static long int get_bursting(const std::string &segment_id)
static void reset_bursting(const std::string &segment_id)
template<class Driver, class o80Standalone, typename ...Args>
void start_action_timed_standalone(std::string segment_id, double frequency, bool bursting, Args&&... args)
template<class Driver, class o80Standalone, typename ...Args>
void start_standalone(std::string segment_id, double frequency, bool bursting, Args&&... args)

instantiates instances of (robot_interfaces) RobotDriver and of (o80) Standalone, and starts them in a thread.

A runtime exception is thrown if another standalone of the same segment_id has already been started. tparam Args template arguments of the driver param segment id o80 BackEnd segment id param frequency frequency at which the standalone will iterate (non bursting mode) param bursting if true, will run in bursting mode, i.e. the standalone will iterate only when the o80 frontend calls its burst function. param args arguments for the driver

bool standalone_is_running(std::string segment_id)

! Returns true if the standalone is iterating.

(returns also false if the standalone does not exist)

void stop_standalone(std::string segment_id)

! Stop the standalone of the specified segment_id.

A runtime error is thrown if no such standalone is running.