Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
doc:srdl2_tutorial [2014/11/27 16:53] – [Missing components or capabilities] admindoc:srdl2_tutorial [2014/11/27 17:00] – [Startup] admin
Line 28: Line 28:
 $ rosrun rosprolog rosprolog knowrob_srdl $ rosrun rosprolog rosprolog knowrob_srdl
  
-% Load SRDL model of the PR2 robot+% Load SRDL model of the PR2 and Baxter robots
 ?- owl_parse('package://knowrob_srdl/owl/PR2.owl'). ?- owl_parse('package://knowrob_srdl/owl/PR2.owl').
 +?- owl_parse('package://knowrob_srdl/owl/baxter.owl').
  
 % Load an example task description for serving a drink % Load an example task description for serving a drink
Line 121: Line 122:
  
 <code prolog> <code prolog>
 +% No components nor capabilities are missing for the ServeADrink action on the PR2:
 ?- missing_comp_for_action(serve_drink:'ServeADrink', pr2:'PR2Robot1', C). ?- missing_comp_for_action(serve_drink:'ServeADrink', pr2:'PR2Robot1', C).
 false. false.
Line 126: Line 128:
 ?- missing_cap_for_action(serve_drink:'ServeADrink', pr2:'PR2Robot1', C). ?- missing_cap_for_action(serve_drink:'ServeADrink', pr2:'PR2Robot1', C).
 false. false.
 +
 +% The Baxter robot, in contrast, cannot perform the task due to lacking navigation abilities:
 +?- missing_cap_for_action(serve_drink:'ServeADrink', baxter:baxter_baxter1, C).
 +C = srdl2cap:'BaseMotionCapability'
 </code> </code>
 ===== Matching requirements to capabilities ===== ===== Matching requirements to capabilities =====