AUBO SDK  0.26.0
arcs::common_interface::RuntimeMachine Class Reference

#include <runtime_machine.h>

Public Member Functions

 RuntimeMachine ()
virtual ~RuntimeMachine ()
int newTask (bool daemon=false)
 Returns the task_id
int deleteTask (int tid)
 Delete a task, which will terminate any ongoing motion.
int detachTask (int tid)
 Wait for the task to finish naturally
bool isTaskAlive (int tid)
 Check if the task is alive
int getTaskQueueSize (int tid)
 Get the number of cached instructions in the task
int switchTask (int tid)
 Switch the current thread.
int setLabel (int lineno, const std::string &comment)
 Mark the line number and comment of the recorded instruction
ARCS_DEPRECATED int setPlanContext (int tid, int lineno, const std::string &comment)
 Add a comment to the aubo_control log Use setLabel instead
int nop ()
 No operation
std::tuple< std::string, std::string > getExecutionStatus ()
 Get the execution status of time-consuming interfaces (INST), such as setPersistentParameters
std::tuple< std::string, std::string, int > getExecutionStatus1 ()
int gotoLine (int lineno)
 Jump to the specified line number
std::tuple< int, int, std::string > getPlanContext (int tid=-1)
 Get the current runtime context
std::tuple< int, int, std::string > getAdvancePlanContext (int tid=-1)
 Get the context information of the advance planner
int getAdvancePtr (int tid=-1)
 Get the program pointer of AdvanceRun
int getMainPtr (int tid=-1)
 Get the program pointer of robot motion
int getInterpPtr (int tid)
 Get the pointer of the most recently interpreted instruction
int loadProgram (const std::string &program)
 Load a local project file.
int preloadProgram (int index, const std::string &program)
 Preload project file
std::string getPreloadProgram (int index)
 Get the name of the preloaded project file.
int clearPreloadPrograms ()
 Clear all preloaded project files.
int runProgram ()
 Run the already loaded project file
int start ()
 Start the runtime
int stop ()
 Stop the runtime, i.e., stop script execution.
int abort ()
 Abort robot operation.
int pause ()
 Pause the interpreter
int step ()
 Execute a single step
int resume ()
 Resume the interpreter
int arbitraryResume ()
 Resume the interpreter
int setResumeWait (bool wait)
 Wait for the previous sequence to complete before resuming the interpreter
int enterCritical (double timeout)
 The abort command is deferred during critical sections to avoid interrupting internal instructions.
int exitCritical ()
 Exit the critical section
ARCS_DEPRECATED RuntimeState getStatus ()
 Get the status of the planner
RuntimeState getRuntimeState ()
int setBreakPoint (int lineno)
 Set a breakpoint
int removeBreakPoint (int lineno)
 Remove a breakpoint
int clearBreakPoints ()
 Clear all breakpoints
int timerStart (const std::string &name)
 Start the timer
int timerStop (const std::string &name)
 Stop the timer
int timerReset (const std::string &name)
 Reset the timer
int timerDelete (const std::string &name)
 Delete the timer
double getTimer (const std::string &name)
 Get the timer value
int triggBegin (double distance, double delay)
 Start configuring trigger
int triggEnd ()
 End configuring trigger
int triggInterrupt (double distance, double delay)
 Returns the automatically assigned interrupt number
std::vector< int > getTriggInterrupts ()
 Get the list of all interrupt numbers

Protected Attributes

void * d_

Detailed Description

Definition at line 19 of file runtime_machine.h.

Constructor & Destructor Documentation

◆ RuntimeMachine()

arcs::common_interface::RuntimeMachine::RuntimeMachine ( )

◆ ~RuntimeMachine()

virtual arcs::common_interface::RuntimeMachine::~RuntimeMachine ( )
virtual

Member Function Documentation

◆ getExecutionStatus1()

std::tuple< std::string, std::string, int > arcs::common_interface::RuntimeMachine::getExecutionStatus1 ( )

◆ getRuntimeState()

RuntimeState arcs::common_interface::RuntimeMachine::getRuntimeState ( )

Member Data Documentation

◆ d_

void* arcs::common_interface::RuntimeMachine::d_
protected

Definition at line 1617 of file runtime_machine.h.


The documentation for this class was generated from the following file: