Classes | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes
edu.tum.cs.ias.knowrob.json_prolog.JSONPrologNode Class Reference

List of all members.

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

Detailed Description

ROS service interface to rosprolog

Author:
Lorenz Moesenlechner

Definition at line 50 of file JSONPrologNode.java.


Constructor & Destructor Documentation

Definition at line 55 of file JSONPrologNode.java.

Definition at line 59 of file JSONPrologNode.java.


Member Function Documentation

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

Parameters:
nameName of the ROS package
Returns:
Path to the ROS package
Exceptions:
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

Exceptions:
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.

Remove a query (i.e. close it and reset the hasIncrementalQuery flag

Parameters:
idQuery ID to be closed

Definition at line 317 of file JSONPrologNode.java.


Member Data Documentation

Definition at line 52 of file JSONPrologNode.java.

Definition at line 53 of file JSONPrologNode.java.

Definition at line 51 of file JSONPrologNode.java.


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


json_prolog
Author(s): Lorenz Moesenlechner, Moritz Tenorth
autogenerated on Sat Dec 28 2013 17:10:00