ckbot :: posable :: PoseRecorderCLI :: Class PoseRecorderCLI
[hide private]
[frames] | no frames]

Class PoseRecorderCLI

source code


Concrete class PoseRecorderCLI provides a cmd.Cmd based commandline interface to a PoseRecorder.

Start one and give the 'help' command to get more information

Instance Methods [hide private]
 
__init__(self, pr, clust=None)
INPUTS:...
source code
 
run(self) source code
 
emptyline(self)
Called when an empty line is entered in response to the prompt.
source code
 
do_target(self, line)
Specify target for commands
source code
 
do_cmd(self, line)
Specify command to broadcast to targets
source code
 
do_show(self, line=None)
Show the current recording in text form
source code
 
do_pose(self, line=None)
Append the current pose to the recording
source code
 
do_reset(self, line=None)
Reset the recording
source code
 
do_off(self, line=None)
Emergency stop the recording -- go_slack() all modules
source code
 
do_closeLoop(self, line)
closeLoop <dt> -- Close a loop in the recording, with delay <dt>
source code
 
do_drop(self, line)
Drop the last pose from the recording
source code
 
do_save(self, line)
save<file> Save recording to a .csv file
source code
 
do_load(self, line)
Append recording from a .csv file load <file>
source code
 
do_count(self, line)
Set number of times to loop
source code
 
do_duration(self, line)
Set duration of one playback period (empty for automatic)
source code
 
do_run(self, line=None)
Run the recording.
source code
 
do_inline(self, line=None)
Show inline code for recording
source code
 
do_EOF(self, line=None) source code
 
do_quit(self, line=None)
quit
source code
 
do_exit(self, line=None)
quit
source code

Inherited from cmd.Cmd: cmdloop, columnize, complete, complete_help, completedefault, completenames, default, do_help, get_names, onecmd, parseline, postcmd, postloop, precmd, preloop, print_topics

Class Variables [hide private]

Inherited from cmd.Cmd: doc_header, doc_leader, identchars, intro, lastcmd, misc_header, nohelp, prompt, ruler, undoc_header, use_rawinput

Method Details [hide private]

__init__(self, pr, clust=None)
(Constructor)

source code 

INPUTS:
  pr -- PoseRecorder -- PoseRecorder to control
  clust -- Cluster / None -- Cluster; to allow the general
    command interface

Overrides: cmd.Cmd.__init__

emptyline(self)

source code 

Called when an empty line is entered in response to the prompt.

If this method is not overridden, it repeats the last nonempty command entered.

Overrides: cmd.Cmd.emptyline
(inherited documentation)

do_target(self, line)

source code 

Specify target for commands

Target may be either * or a space-separate list of module names

do_run(self, line=None)

source code 

Run the recording. Set duration and cycle count with 'duration' and 'count' commands