Classes | |
class | FinishCallback |
class | NextSolutionCallback |
class | QueryCallback |
class | RospackError |
class | SimpleQueryCallback |
Public Member Functions | |
void | execute (String args[]) throws InterruptedException, RosException, IOException, RospackError |
JSONPrologNode () | |
JSONPrologNode (String initpkg) | |
void | removeQuery (String id) |
Static Public Member Functions | |
static void | main (String args[]) |
Static Private Member Functions | |
static String | findRosPackage (String name) throws IOException, InterruptedException, RospackError |
static void | initProlog () throws IOException, InterruptedException, RospackError |
Private Attributes | |
boolean | hasIncrementalQuery = false |
String | initPackage = "" |
Hashtable< String, PrologSolutions > | queries |
ROS service interface to rosprolog
Definition at line 50 of file JSONPrologNode.java.
Definition at line 55 of file JSONPrologNode.java.
edu.tum.cs.ias.knowrob.json_prolog.JSONPrologNode.JSONPrologNode | ( | String | initpkg | ) | [inline] |
Definition at line 59 of file JSONPrologNode.java.
void edu.tum.cs.ias.knowrob.json_prolog.JSONPrologNode.execute | ( | String | args[] | ) | throws InterruptedException, RosException, IOException, RospackError [inline] |
Run the json_prolog node, i.e. launch the Prolog environment, initialize the ROS connection and register the callbacks
Definition at line 261 of file JSONPrologNode.java.
static String edu.tum.cs.ias.knowrob.json_prolog.JSONPrologNode.findRosPackage | ( | String | name | ) | throws IOException, InterruptedException, RospackError [inline, static, private] |
Find a ROS package using the rospack program
name | Name of the ROS package |
IOException | |
InterruptedException | |
RospackError |
Definition at line 357 of file JSONPrologNode.java.
static void edu.tum.cs.ias.knowrob.json_prolog.JSONPrologNode.initProlog | ( | ) | throws IOException, InterruptedException, RospackError [inline, static, private] |
Initialize the SWI Prolog engine
IOException | |
InterruptedException | |
RospackError |
Definition at line 337 of file JSONPrologNode.java.
static void edu.tum.cs.ias.knowrob.json_prolog.JSONPrologNode.main | ( | String | args[] | ) | [inline, static] |
Definition at line 367 of file JSONPrologNode.java.
void edu.tum.cs.ias.knowrob.json_prolog.JSONPrologNode.removeQuery | ( | String | id | ) | [inline] |
Remove a query (i.e. close it and reset the hasIncrementalQuery flag
id | Query ID to be closed |
Definition at line 317 of file JSONPrologNode.java.
boolean edu.tum.cs.ias.knowrob.json_prolog.JSONPrologNode.hasIncrementalQuery = false [private] |
Definition at line 52 of file JSONPrologNode.java.
String edu.tum.cs.ias.knowrob.json_prolog.JSONPrologNode.initPackage = "" [private] |
Definition at line 53 of file JSONPrologNode.java.
Hashtable<String, PrologSolutions> edu.tum.cs.ias.knowrob.json_prolog.JSONPrologNode.queries [private] |
Definition at line 51 of file JSONPrologNode.java.