Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
doc:flow_chart_visualization [2013/04/23 07:18] – [Definition of interactions] admin | doc:flow_chart_visualization [2014/06/05 11:38] – external edit 127.0.0.1 |
---|
* Executing Java methods: Static Java methods can be specified using IRIs of the form java:%%//%%<namespace+class>#<method>() | * Executing Java methods: Static Java methods can be specified using IRIs of the form java:%%//%%<namespace+class>#<method>() |
* Querying the KnowRob knowledge base: Prolog queries are described by 'prolog:%%//%%<query>' | * Querying the KnowRob knowledge base: Prolog queries are described by 'prolog:%%//%%<query>' |
* Calling ROS services: ROS services can be called (with either no arguments or one of type 'string') by service:%%//%%<node>/<service-name>#<type>&<argument>'. The 'type' argument is of the form 'package.srv.ServiceType', e.g. 'roscpp_tutorials.srv.TwoInts' | * Calling ROS services: ROS services can be called by service:%%//%%<node>/<service-name>#<type>&<argument>'. Since rosjava has limited support for introspection (which could be used to read the service types and message formats), the logic for calling the service needs to be implemented in the Java file. |
| |
The following example of a [[http://en.wikipedia.org/wiki/YAML|YAML file]] defines three actions for the IDs //prac//, //importer// and //tracking//. As mentioned earlier, the corresponding blocks are called //block_<id>//. | The following example of a [[http://en.wikipedia.org/wiki/YAML|YAML file]] defines three actions for the IDs //prac//, //importer// and //tracking//. As mentioned earlier, the corresponding blocks are called //block_<id>//. |
prac : 'java://org.prac.main.PracInfer#doStuff()' | prac : 'java://org.prac.main.PracInfer#doStuff()' |
importer : 'prolog://query(a, B, C), a2(C)' | importer : 'prolog://query(a, B, C), a2(C)' |
tracking : 'service://hand_tracking/start#hand_tracking.StartTracker&startTracking' | tracking : 'service://hand_tracking/start#hand_tracking.srv.StartTracker&startTracking' |