def get_phrases(self): ''' Returns: [[Phrase]] ''' Error.p("Option:get_phrases must be implemented by a subclass.") sys.exit(1)
def main(self, args=[]): if args == []: self.run_default_query() else: arg = args[0] if arg == 'interactive': self.default_interactive_loop() elif arg == 'interactive-simple': self.simple_interactive_loop() elif arg == 'sentences': self.print_sentences() elif arg == 'ros': self.startup_ros(spin=True) elif arg == 'describe': self.startup_ros(spin=False) self.set_and_describe() elif arg == 'ground': self.default_grounding_loop() else: Error.p("Unknown option: " + arg)