Classes | |
class | AnswerQueriesThread |
class | SpeechInListenerThread |
Public Member Functions | |
void | draw () |
String | getCurrentObject () |
String | getCurrentState () |
boolean | isLocalProlog () |
void | keyPressed () |
void | registerState (String state) |
void | setCurrentObject (String currentObject) |
void | setLocalProlog (boolean localProlog) |
void | setState (String state) |
void | setTopLevelState () |
void | setup () |
void | setVoice (String voice) |
void | showImageInNewWindow (String img) |
boolean | stateExists (String state) |
Static Public Member Functions | |
static HashMap< String, Vector < PrologValue > > | executeJSONPrologQuery (String query) |
static HashMap< String, Vector < PrologValue > > | executeLispPrologQuery (String query) |
static HashMap< String, Vector < PrologValue > > | executeLocalPrologQuery (String query) |
static String | findRosPackage (String pkgname) |
static void | main (String args[]) |
static String | removeSingleQuotes (String str) |
static String | toEnglish (String plString) |
static String | toProlog (String enString) |
Public Attributes | |
EHowInstructionPanel | ehow_panel |
JFrame | ehow_window |
JFrame | img_window |
ImageViewerApplet | iviewer |
Static Public Attributes | |
static ControlP5 | controlP5 |
static NodeHandle | n |
static String | TOP_LEVEL_STATE = "init" |
Static Protected Member Functions | |
static void | initRos () |
static String | startToUpperCase (String q) |
Protected Attributes | |
String | currentObject = "" |
HashSet< String > | registeredStates = new HashSet<String>() |
String | state = TOP_LEVEL_STATE |
boolean | useSpeechInput = true |
Static Protected Attributes | |
static boolean | localProlog = false |
Package Functions | |
String | answer_query (String q) |
void | controlEvent (ControlEvent theEvent) |
void | handleTextQuery (String textquery) |
Static Package Functions | |
[static initializer] | |
Package Attributes | |
CheckBox | checkbox |
ControlFont | font |
Publisher < ros.pkg.std_msgs.msg.String > | mary_pub |
ArrayList< DialogQuery > | queries |
Static Package Attributes | |
static Subscriber.QueueingCallback < ros.pkg.std_msgs.msg.String > | callback |
static Ros | ros |
Private Member Functions | |
void | initControlP5 () |
Static Private Member Functions | |
static void | addMapping (String pl, String en) |
static List< Class > | findClasses (File directory, String packageName) throws ClassNotFoundException |
static Class[] | getClasses (String packageName) throws ClassNotFoundException, IOException |
static void | initProlog () |
static void | setMappings () |
Static Private Attributes | |
static HashMap< String, String > | englishToProlog |
static HashMap< String, String > | prologToEnglish |
static final long | serialVersionUID = 4575739930038583994L |
Definition at line 54 of file DialogModule.java.
edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.[static initializer] | ( | ) | [inline, static, package] |
static void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.addMapping | ( | String | pl, |
String | en | ||
) | [inline, static, private] |
Definition at line 496 of file DialogModule.java.
String edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.answer_query | ( | String | q | ) | [inline, package] |
Definition at line 256 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.controlEvent | ( | ControlEvent | theEvent | ) | [inline, package] |
Definition at line 548 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.draw | ( | ) | [inline] |
Definition at line 209 of file DialogModule.java.
static HashMap<String, Vector<PrologValue> > edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.executeJSONPrologQuery | ( | String | query | ) | [inline, static] |
Execute the query
query | the query. |
Definition at line 285 of file DialogModule.java.
static HashMap<String, Vector<PrologValue> > edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.executeLispPrologQuery | ( | String | query | ) | [inline, static] |
Definition at line 318 of file DialogModule.java.
static HashMap<String, Vector<PrologValue> > edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.executeLocalPrologQuery | ( | String | query | ) | [inline, static] |
Execute the given query. Assert the given premises and retract them after querying.
query | the query. |
Definition at line 731 of file DialogModule.java.
static List<Class> edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.findClasses | ( | File | directory, |
String | packageName | ||
) | throws ClassNotFoundException [inline, static, private] |
Recursive method used to find all classes in a given directory and subdirs.
directory | The base directory |
packageName | The package name for classes found inside the base directory |
ClassNotFoundException |
Definition at line 658 of file DialogModule.java.
static String edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.findRosPackage | ( | String | pkgname | ) | [inline, static] |
static Class [] edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.getClasses | ( | String | packageName | ) | throws ClassNotFoundException, IOException [inline, static, private] |
Scans all classes accessible from the context class loader which belong to the given package and subpackages.
packageName | The base package |
ClassNotFoundException | |
IOException |
Definition at line 633 of file DialogModule.java.
String edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.getCurrentObject | ( | ) | [inline] |
Definition at line 426 of file DialogModule.java.
String edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.getCurrentState | ( | ) | [inline] |
Definition at line 224 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.handleTextQuery | ( | String | textquery | ) | [inline, package] |
Definition at line 572 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.initControlP5 | ( | ) | [inline, private] |
Definition at line 511 of file DialogModule.java.
static void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.initProlog | ( | ) | [inline, static, private] |
Definition at line 705 of file DialogModule.java.
static void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.initRos | ( | ) | [inline, static, protected] |
Definition at line 99 of file DialogModule.java.
boolean edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.isLocalProlog | ( | ) | [inline] |
Definition at line 759 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.keyPressed | ( | ) | [inline] |
Definition at line 560 of file DialogModule.java.
static void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.main | ( | String | args[] | ) | [inline, static] |
Definition at line 768 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.registerState | ( | String | state | ) | [inline] |
Definition at line 232 of file DialogModule.java.
static String edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.removeSingleQuotes | ( | String | str | ) | [inline, static] |
Definition at line 435 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.setCurrentObject | ( | String | currentObject | ) | [inline] |
Definition at line 431 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.setLocalProlog | ( | boolean | localProlog | ) | [inline] |
Definition at line 764 of file DialogModule.java.
static void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.setMappings | ( | ) | [inline, static, private] |
Definition at line 481 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.setState | ( | String | state | ) | [inline] |
Definition at line 238 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.setTopLevelState | ( | ) | [inline] |
Definition at line 244 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.setup | ( | void | ) | [inline] |
Definition at line 113 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.setVoice | ( | String | voice | ) | [inline] |
Definition at line 413 of file DialogModule.java.
void edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.showImageInNewWindow | ( | String | img | ) | [inline] |
Definition at line 597 of file DialogModule.java.
static String edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.startToUpperCase | ( | String | q | ) | [inline, static, protected] |
Definition at line 444 of file DialogModule.java.
boolean edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.stateExists | ( | String | state | ) | [inline] |
Definition at line 228 of file DialogModule.java.
static String edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.toEnglish | ( | String | plString | ) | [inline, static] |
Definition at line 466 of file DialogModule.java.
static String edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.toProlog | ( | String | enString | ) | [inline, static] |
Definition at line 448 of file DialogModule.java.
Subscriber.QueueingCallback<ros.pkg.std_msgs.msg.String> edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.callback [static, package] |
Definition at line 94 of file DialogModule.java.
CheckBox edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.checkbox [package] |
Definition at line 86 of file DialogModule.java.
ControlP5 edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.controlP5 [static] |
Definition at line 84 of file DialogModule.java.
String edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.currentObject = "" [protected] |
Definition at line 65 of file DialogModule.java.
Definition at line 70 of file DialogModule.java.
Definition at line 69 of file DialogModule.java.
HashMap<String, String> edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.englishToProlog [static, private] |
Definition at line 63 of file DialogModule.java.
ControlFont edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.font [package] |
Definition at line 85 of file DialogModule.java.
Definition at line 67 of file DialogModule.java.
Definition at line 68 of file DialogModule.java.
boolean edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.localProlog = false [static, protected] |
Definition at line 73 of file DialogModule.java.
Publisher<ros.pkg.std_msgs.msg.String> edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.mary_pub [package] |
Definition at line 97 of file DialogModule.java.
Definition at line 92 of file DialogModule.java.
HashMap<String, String> edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.prologToEnglish [static, private] |
Definition at line 62 of file DialogModule.java.
ArrayList<DialogQuery> edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.queries [package] |
Definition at line 81 of file DialogModule.java.
HashSet<String> edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.registeredStates = new HashSet<String>() [protected] |
Definition at line 60 of file DialogModule.java.
Ros edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.ros [static, package] |
Thread-safe ROS initialization
Definition at line 91 of file DialogModule.java.
final long edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.serialVersionUID = 4575739930038583994L [static, private] |
Definition at line 56 of file DialogModule.java.
String edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.state = TOP_LEVEL_STATE [protected] |
Definition at line 59 of file DialogModule.java.
String edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.TOP_LEVEL_STATE = "init" [static] |
Definition at line 58 of file DialogModule.java.
boolean edu.tum.cs.ias.knowrob.mod_dialog.DialogModule.useSpeechInput = true [protected] |
Definition at line 72 of file DialogModule.java.