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

List of all members.

Public Member Functions

PrologBindings once (String query_str)
 Prolog (String ns)
 Prolog ()
PrologQueryProxy query (String query_str)

Public Attributes

ServiceClient
< PrologNextSolution.Request,
PrologNextSolution.Response,
PrologNextSolution > 
next_solution
ServiceClient
< PrologFinish.Request,
PrologFinish.Response,
PrologFinish > 
prolog_finish
ServiceClient
< PrologQuery.Request,
PrologQuery.Response,
PrologQuery > 
prolog_query

Static Protected Member Functions

static void initRos ()

Static Private Attributes

static NodeHandle n
static Ros ros

Detailed Description

Client wrapper library for the json_prolog interface

Main class to be used in other applications. For example usage, see

The implementation was intentionally kept similar to the C++ client library by Lorenz M"osenlechner

Author:
Moritz Tenorth

Definition at line 51 of file Prolog.java.


Constructor & Destructor Documentation

Constructor. Specify the ROS name space (default: "/json_prolog")

Parameters:
ns

Definition at line 78 of file Prolog.java.

Definition at line 85 of file Prolog.java.


Member Function Documentation

static void edu.tum.cs.ias.knowrob.json_prolog.Prolog.initRos ( ) [inline, static, protected]

Definition at line 56 of file Prolog.java.

Send a query to Prolog and retrieve only the first result. Finishes the query after retrieving the result.

Parameters:
query_strThe query to be sent to Prolog (standard SWI Prolog syntax)
Returns:
PrologBindings for the first result.

Definition at line 108 of file Prolog.java.

Send a query to Prolog

Parameters:
query_strThe query to be sent to Prolog (standard SWI Prolog syntax)
Returns:
An instance of the PrologQueryProxy that can be used to iterate over the results

Definition at line 96 of file Prolog.java.


Member Data Documentation

Definition at line 54 of file Prolog.java.

ServiceClient<PrologNextSolution.Request, PrologNextSolution.Response, PrologNextSolution> edu.tum.cs.ias.knowrob.json_prolog.Prolog.next_solution

Definition at line 68 of file Prolog.java.

ServiceClient<PrologFinish.Request, PrologFinish.Response, PrologFinish> edu.tum.cs.ias.knowrob.json_prolog.Prolog.prolog_finish

Definition at line 69 of file Prolog.java.

ServiceClient<PrologQuery.Request, PrologQuery.Response, PrologQuery> edu.tum.cs.ias.knowrob.json_prolog.Prolog.prolog_query

Definition at line 67 of file Prolog.java.

Definition at line 53 of file Prolog.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