|
seq
4.0.0-pre3
|
Classes | |
| class | SeqShell |
Functions | |
| def | event_wait (evt, timeout) |
| def | shutdown (loop, signal=None) |
| exception handler More... | |
| def | handle_exception (loop, context) |
| Cleanup tasks tied to the service's shutdown. More... | |
| def | write_cmd (self, text) |
| Starts sequencer interpreter process. More... | |
| def | start_seq_core (self) |
| empty line handler More... | |
| def | emptyline (self) |
| Kills suboprocess. More... | |
| def | do_clear (self, arg) |
| quit command More... | |
| def | do_quit (self, line) |
| init command More... | |
| def | do_init (self, line="") |
| def | do_err (self, line) |
| load command More... | |
| def | do_load (self, line) |
| modules command More... | |
| def | do_modules (self, line) |
| a simple callback for pending command (unused) More... | |
| def | tpl_done_cb (self, task) |
| Executes all loaded modules. More... | |
| def | do_run (self, arg) |
| Executes all loaded modules. More... | |
| def | do_reset (self, arg) |
| nodes command More... | |
| def | do_nodes (self, arg) |
| save command More... | |
| def | do_save (self, arg) |
| session command More... | |
| def | do_session (self, arg) |
| tree command More... | |
| def | do_tree (self, arg) |
| skip command More... | |
| def | do_skip (self, arg) |
| unskip command More... | |
| def | do_unskip (self, arg) |
| pause command More... | |
| def | do_pause (self, arg) |
| flip command More... | |
| def | do_flip (self, arg) |
| resume command More... | |
| def | do_resume (self, arg) |
| break command More... | |
| def | do_break (self, arg) |
| Loads an OB file (json) More... | |
| def | do_abort (self, arg) |
| retry command More... | |
| def | do_ob (self, arg) |
| def | do_retry (self, arg) |
| continue command More... | |
| def | do_continue (self, arg) |
| lsob command More... | |
| def | do_lsob (self, arg) |
| lsvar command More... | |
| def | do_lsvar (self, arg) |
| Fetch an OB from OTTO. More... | |
| def | do_otto (self, arg) |
| def | do_fetch (self, arg) |
| bypass to subprocess command More... | |
| def | do_checked (self, arg) |
| def | do_continue_seq (self, node_result) |
| def | do_bp (self, arg) |
| def | mytask (loop, topic_id, log_level, evt, use_stdout=True) |
| def | monitor_quit (quit_event) |
seqtool shell main loop More... | |
| def | main_loop (topic_id, log_level=logging.INFO, use_stdout=True) |
| def | shell (topic_id, log_level, use_stdout=True) |
Variables | |
| LOGGER = logging.getLogger(__name__) | |
| proc | |
| reader_task | |
| s_json | |
| def cli.seqsh.do_abort | ( | self, | |
| arg | |||
| ) |
retry command
| def cli.seqsh.do_bp | ( | self, | |
| arg | |||
| ) |
| def cli.seqsh.do_break | ( | self, | |
| arg | |||
| ) |
Loads an OB file (json)
ob <obpath> [--append_flag=<bool> [--otto_flag]]
| def cli.seqsh.do_checked | ( | self, | |
| arg | |||
| ) |
| def cli.seqsh.do_clear | ( | self, | |
| arg | |||
| ) |
quit command
| def cli.seqsh.do_continue | ( | self, | |
| arg | |||
| ) |
lsob command
| def cli.seqsh.do_continue_seq | ( | self, | |
| node_result | |||
| ) |
| def cli.seqsh.do_err | ( | self, | |
| line | |||
| ) |
load command
| def cli.seqsh.do_fetch | ( | self, | |
| arg | |||
| ) |
bypass to subprocess command
| def cli.seqsh.do_flip | ( | self, | |
| arg | |||
| ) |
resume command
| def cli.seqsh.do_init | ( | self, | |
line = "" |
|||
| ) |
| def cli.seqsh.do_load | ( | self, | |
| line | |||
| ) |
modules command
| def cli.seqsh.do_lsob | ( | self, | |
| arg | |||
| ) |
lsvar command
| def cli.seqsh.do_lsvar | ( | self, | |
| arg | |||
| ) |
Fetch an OB from OTTO.
| def cli.seqsh.do_modules | ( | self, | |
| line | |||
| ) |
a simple callback for pending command (unused)
| def cli.seqsh.do_nodes | ( | self, | |
| arg | |||
| ) |
save command
| def cli.seqsh.do_ob | ( | self, | |
| arg | |||
| ) |
| def cli.seqsh.do_otto | ( | self, | |
| arg | |||
| ) |
| def cli.seqsh.do_pause | ( | self, | |
| arg | |||
| ) |
flip command
| def cli.seqsh.do_quit | ( | self, | |
| line | |||
| ) |
init command
Creates sequencer exec process
| def cli.seqsh.do_reset | ( | self, | |
| arg | |||
| ) |
nodes command
| def cli.seqsh.do_resume | ( | self, | |
| arg | |||
| ) |
break command
| def cli.seqsh.do_retry | ( | self, | |
| arg | |||
| ) |
continue command
| def cli.seqsh.do_run | ( | self, | |
| arg | |||
| ) |
Executes all loaded modules.
| def cli.seqsh.do_save | ( | self, | |
| arg | |||
| ) |
session command
| def cli.seqsh.do_session | ( | self, | |
| arg | |||
| ) |
tree command
| def cli.seqsh.do_skip | ( | self, | |
| arg | |||
| ) |
unskip command
| def cli.seqsh.do_tree | ( | self, | |
| arg | |||
| ) |
skip command
| def cli.seqsh.do_unskip | ( | self, | |
| arg | |||
| ) |
pause command
| def cli.seqsh.emptyline | ( | self | ) |
Kills suboprocess.
| def cli.seqsh.event_wait | ( | evt, | |
| timeout | |||
| ) |
| def cli.seqsh.handle_exception | ( | loop, | |
| context | |||
| ) |
Cleanup tasks tied to the service's shutdown.
Asynchronous wrapper around the subprocess seqtool kernel.
This class starts a subprocess seqtool kernel and writes commands to it through its stdin channel, and monitor its responses in the stdout channel.
Using the responses in stdout, it publishes to dds susbcribers feedback on the sequencer commands and the progress of the sequence execution.
Loop method. It monitors the lines from the seqtool kernel subprocess stdout, and finds json formats.
Once a '{' character is found, it is assumed to be the start of a json string. It is loaded as json.
Responses from the seqtool kernel include json formatted string which are transformed into dictionaries.
From those, a set of keywords (seq.cli.keywords) are use to find information of interest to be published to dds subscribers.
| def cli.seqsh.main_loop | ( | topic_id, | |
log_level = logging.INFO, |
|||
use_stdout = True |
|||
| ) |
| def cli.seqsh.monitor_quit | ( | quit_event | ) |
seqtool shell main loop
topic_id int
Sequencer shell function
When executing seqtool shell, seq.cli and click resolves into this function.
It forwards the arguments to a loop function.
topic_id int topic identifier to publish changed state event log_level str Minimum log level presented use_stdout bool
| def cli.seqsh.mytask | ( | loop, | |
| topic_id, | |||
| log_level, | |||
| evt, | |||
use_stdout = True |
|||
| ) |
| def cli.seqsh.shell | ( | topic_id, | |
| log_level, | |||
use_stdout = True |
|||
| ) |
| def cli.seqsh.shutdown | ( | loop, | |
signal = None |
|||
| ) |
exception handler
| def cli.seqsh.start_seq_core | ( | self | ) |
empty line handler
| def cli.seqsh.tpl_done_cb | ( | self, | |
| task | |||
| ) |
Executes all loaded modules.
| def cli.seqsh.write_cmd | ( | self, | |
| text | |||
| ) |
Starts sequencer interpreter process.
| cli.seqsh.LOGGER = logging.getLogger(__name__) |
| cli.seqsh.proc |
| cli.seqsh.reader_task |
| cli.seqsh.s_json |