dynamic_graph_manager
ros.dgcompleter.DGCompleter Class Reference

Public Member Functions

def __init__ (self)
 Create a new completer for the command line. More...
 
def complete (self, text, state)
 Return the next possible completion for 'text'.readline.parse_and_bind("tab: complete") More...
 

Public Attributes

 client
 
 buffer
 

Constructor & Destructor Documentation

◆ __init__()

def ros.dgcompleter.DGCompleter.__init__ (   self)

Create a new completer for the command line.

Completer([client]) -> completer instance.

Client is a ROS proxy to dynamic_graph run_python_command service.

Completer instances should be used as the completion mechanism of readline via the set_completer() call:

readline.set_completer(Completer(client).complete)

Member Function Documentation

◆ complete()

def ros.dgcompleter.DGCompleter.complete (   self,
  text,
  state 
)

Return the next possible completion for 'text'.readline.parse_and_bind("tab: complete")

This is called successively with state == 0, 1, 2, ... until it returns None. The completion should begin with 'text'.


The documentation for this class was generated from the following file: