Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
srdl2_tutorial [2013/02/05 13:17] – created tenorthsrdl2_tutorial [2013/02/05 13:19] – [Ontology organization] tenorth
Line 15: Line 15:
 The ontology structure has been re-organized to increase modularity. Now, the system can, for example, also be used to describe only components or only components and capabilities. The diagram below shows which parts of the ontology import which other ones. The ontology structure has been re-organized to increase modularity. Now, the system can, for example, also be used to describe only components or only components and capabilities. The diagram below shows which parts of the ontology import which other ones.
  
-[[Image:srdl2-ontology.png|center|]]+{{ :srdl2-ontology.png|}}
  
   * srdl2: Only generic cross-file relations like the generic dependsOn property   * srdl2: Only generic cross-file relations like the generic dependsOn property
Line 27: Line 27:
  
 The matching has been simplified a lot and effectively reduced to the following statement: The matching has been simplified a lot and effectively reduced to the following statement:
- missing_cap_for_action(Action, Robot, Cap) :-+  missing_cap_for_action(Action, Robot, Cap) :-
      required_cap_for_action(Action, Cap),      required_cap_for_action(Action, Cap),
      \+ cap_available_on_robot(Cap, Robot).      \+ cap_available_on_robot(Cap, Robot).
 A missing capability is thus defined as one that is required by an action, but not provided by the robot. Required means that either the action itself or any sub-action has a dependency on this capability: A missing capability is thus defined as one that is required by an action, but not provided by the robot. Required means that either the action itself or any sub-action has a dependency on this capability:
- required_cap_for_action(Action, Cap) :-+  required_cap_for_action(Action, Cap) :-
      class_properties(Action, srdl2cap:'dependsOnCapability', Cap).      class_properties(Action, srdl2cap:'dependsOnCapability', Cap).
- required_cap_for_action(Action, Cap) :-+  required_cap_for_action(Action, Cap) :-
      plan_subevents_recursive(Action, SubAction),      plan_subevents_recursive(Action, SubAction),
      class_properties(SubAction, srdl2cap:'dependsOnCapability', Cap).      class_properties(SubAction, srdl2cap:'dependsOnCapability', Cap).