Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorials:intermediate:new_actions [2018/12/30 15:40] – [Atomic-action-designator] vanessa | tutorials:intermediate:new_actions [2019/01/02 16:17] – [Pick-action-designator] vanessa | ||
---|---|---|---|
Line 167: | Line 167: | ||
+ | |||
+ | Now it is necessary to define a action designator of the new type for pick-up e.g. | ||
+ | |||
+ | <code lisp> | ||
+ | ;; | ||
+ | (def-fact-group pick-and-place-plans (desig: | ||
+ | (<- (desig: | ||
+ | ? | ||
+ | ? | ||
+ | ? | ||
+ | ? | ||
+ | ;; extract info from ? | ||
+ | (spec: | ||
+ | (spec: | ||
+ | (desig: | ||
+ | (spec: | ||
+ | (spec: | ||
+ | (-> (spec: | ||
+ | (true) | ||
+ | (man-int: | ||
+ | (lisp-fun man-int: | ||
+ | ;; infer missing information like ?grasp type, gripping ? | ||
+ | (lisp-fun man-int: | ||
+ | (-> (man-int: | ||
+ | (equal ? | ||
+ | (equal ? | ||
+ | (-> (spec: | ||
+ | (true) | ||
+ | (and (lisp-fun man-int: | ||
+ | | ||
+ | (lisp-fun man-int: | ||
+ | (lisp-fun man-int: | ||
+ | (lisp-fun man-int: | ||
+ | ? | ||
+ | ? | ||
+ | (lisp-fun man-int: | ||
+ | ? | ||
+ | ? | ||
+ | (lisp-fun extract-pick-up-manipulation-poses ?arm ?left-poses ? | ||
+ | (? | ||
+ | ? | ||
+ | ? | ||
+ | |||
+ | | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | First all of the information from the ? | ||
+ | (-> (man-int: | ||
+ | (equal ? | ||
+ | (equal ? | ||
+ | (-> (spec: | ||
+ | (true) | ||
+ | (and (lisp-fun man-int: | ||
+ | | ||
+ | |||
+ | The system needs to know how the object, that will be picked up, is facing so that the rotation is correctly and the transformation from gripper to object will be properly. | ||
====== Get-trajectory ====== | ====== Get-trajectory ====== | ||
====== Write a Demo====== | ====== Write a Demo====== |