The RMP Motion Controller APIs

◆ Cancel()

void Cancel ( )
pure virtual

This method sets the cancel flag, Calls Robot::EStop() and attempts to terminate any ongoing operations started by Gcode::Run(). This will join the thread running the G-code execution.

Cancel the currently running G-code program.

Note
Use this method cautiously as it wil EStop the Robot interrupt any ongoing G-code execution. If the G-code execution has invoked a user callback and is stuck there, this method won't be able to terminate the callback function. The callback function itself needs to periodically check the cancellation status.