Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
interact_with_knowrob_via_ros [2013/01/09 21:13] – [Client libraries] tenorth | interact_with_knowrob_via_ros [2013/02/12 17:41] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 66: | Line 66: | ||
</ | </ | ||
+ | |||
+ | ==== Java client ==== | ||
+ | |||
+ | <code java> | ||
+ | import edu.tum.cs.ias.knowrob.json_prolog.Prolog; | ||
+ | import edu.tum.cs.ias.knowrob.json_prolog.PrologBindings; | ||
+ | import edu.tum.cs.ias.knowrob.json_prolog.PrologQueryProxy; | ||
+ | |||
+ | |||
+ | public class JSONPrologTestClient { | ||
+ | |||
+ | public static void main(String args[]) { | ||
+ | |||
+ | Prolog pl = new Prolog(); | ||
+ | PrologQueryProxy bdgs = pl.query(" | ||
+ | |||
+ | |||
+ | for(PrologBindings bdg : bdgs) { | ||
+ | |||
+ | System.out.println(" | ||
+ | System.out.println(" | ||
+ | System.out.println(" | ||
+ | System.out.println(" | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ |