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