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
tutorials:intermediate:bullet_world [2023/05/02 14:13] – [Geometric reasoning] fixed bug gkazhoyatutorials:intermediate:bullet_world [2023/05/02 14:15] (current) – [Abstract entity descriptions] gkazhoya
Line 308: Line 308:
 <code lisp> <code lisp>
 BTW-TUT> (prolog:prolog '(and (btr:bullet-world ?world) BTW-TUT> (prolog:prolog '(and (btr:bullet-world ?world)
-                              (assert (btr:object-pose ?world :pr2 +                              (rob-int:robot ?robot) 
-                                                       ((0.5 0) (0 0 1 0))))))+                              (btr:visible ?world ?robot mug-1)))
 NIL NIL
 </code> </code>
Line 332: Line 332:
 BTW-TUT> BTW-TUT>
 (def-fact-group costmap-metadata () (def-fact-group costmap-metadata ()
-    (<- (:costmap-size 12 12)) +    (<- (costmap-size 12 12)) 
-    (<- (:costmap-origin -6 -6)) +    (<- (costmap-origin -6 -6)) 
-    (<- (:costmap-resolution 0.04))+    (<- (costmap-resolution 0.04))
    
-    (<- (:costmap-padding 0.3)) +    (<- (costmap-padding 0.3)) 
-    (<- (:costmap-manipulation-padding 0.4)) +    (<- (costmap-manipulation-padding 0.4)) 
-    (<- (:costmap-in-reach-distance 0.7)) +    (<- (costmap-in-reach-distance 0.7)) 
-    (<- (:costmap-reach-minimal-distance 0.2)) +    (<- (costmap-reach-minimal-distance 0.2)) 
-    (<- (:visibility-costmap-size 2)) +    (<- (visibility-costmap-size 2)) 
-    (<- (:orientation-samples 2)) +    (<- (orientation-samples 2)) 
-    (<- (:orientation-sample-step 0.1)))+    (<- (orientation-sample-step 0.1)))
 </code> </code>
 Now, we create an abstract location description that we call a //designator//. The abstract description gets grounded into specific geometric coordinates with the ''reference'' function.  Now, we create an abstract location description that we call a //designator//. The abstract description gets grounded into specific geometric coordinates with the ''reference'' function.