roboglia.move.Script¶
-
class
Script
(name='SCRIPT', robot=None, times=1, joints=[], frames={}, sequences={}, scenes={}, script=[], **kwargs)[source]¶ Bases:
roboglia.move.thread.StepLoop
-
__init__
(name='SCRIPT', robot=None, times=1, joints=[], frames={}, sequences={}, scenes={}, script=[], **kwargs)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
property
script
¶ Returns the script (the list of scenes to be executed).
-
atomic
(data)[source]¶ Inherited from
StepLoop
. Submits the data to the robot manager only for valid joints.
-
property
name
¶ Returns the name of the thread.
-
pause
()¶ Requests the thread to pause.
-
property
paused
¶ Indicates the thread was paused.
-
resume
()¶ Requests the thread to resume.
-
run
()¶ Wraps the execution between the duration provided and decrements iteration run.
-
property
running
¶ Indicates if the thread is running.
-
setup
()¶ Resets the loop from the begining.
-
start
(wait=True)¶ Starts the task in it’s own thread.
-
property
started
¶ Indicates if the thread was started.
-
stop
(wait=True)¶ Sends the stopping signal to the thread. By default waits for the thread to finish.
-
property
stopped
¶ Indicates if the thread was stopped.
-