Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:intermediate:bullet_world [2022/04/12 15:02] – [Moving the robot in the Bullet world] schimpf | tutorials:intermediate:bullet_world [2023/05/02 14:15] (current) – [Abstract entity descriptions] gkazhoya | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | **//Tested with Cram v0.7.0, ROS version: | + | **//Tested with Cram v0.8.0, ROS version: |
====== Bullet world demonstration ====== | ====== Bullet world demonstration ====== | ||
Line 308: | Line 308: | ||
<code lisp> | <code lisp> | ||
BTW-TUT> (prolog: | BTW-TUT> (prolog: | ||
- | (assert | + | (rob-int: |
- | | + | |
NIL | NIL | ||
</ | </ | ||
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))) |
</ | </ | ||
Now, we create an abstract location description that we call a // | Now, we create an abstract location description that we call a // | ||
Line 538: | Line 538: | ||
and the following does: | and the following does: | ||
<code lisp> | <code lisp> | ||
- | BTW-TUT> (pr2-proj: | + | BTW-TUT> (urdf-proj: |
| | ||
</ | </ | ||
Line 545: | Line 545: | ||
==== Moving the robot in the Bullet world ==== | ==== Moving the robot in the Bullet world ==== | ||
- | In this part of the tutorial we will look into moving the robot and it's body parts as well as perceiving objects through the Bullet world. We will use functions from the '' | + | In this part of the tutorial we will look into moving the robot and it's body parts as well as perceiving objects through the Bullet world. We will use functions from the '' |
- | This teleporting is done by directly calling Prolog predicates that move objects in the world (for navigating the robot, simply teleport it to the goal), changing joint angles (to move the arm simply teleport the arm to given joint values) etc. '' | + | This teleporting is done by directly calling Prolog predicates that move objects in the world (for navigating the robot, simply teleport it to the goal), changing joint angles (to move the arm simply teleport the arm to given joint values) etc. '' |
Another package that we will use in this part of the tutorial is '' | Another package that we will use in this part of the tutorial is '' | ||
Line 623: | Line 623: | ||
(urdf-proj:: | (urdf-proj:: | ||
</ | </ | ||
- | As some of the functions in '' | + | As some of the functions in '' |
- | The function '' | + | The function '' |
<code lisp> | <code lisp> | ||
(prolog: | (prolog: | ||
</ | </ | ||
- | '' | + | '' |
Now, let us finally perceive the object and store the result in the '' | Now, let us finally perceive the object and store the result in the '' |