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:bullet_world [2019/07/08 17:17] – [Moving the robot in the Bullet world] gkazhoya | tutorials:intermediate:bullet_world [2022/04/12 14:34] – [Bullet world initialization] schimpf | ||
---|---|---|---|
Line 153: | Line 153: | ||
(cram-robot-interfaces: | (cram-robot-interfaces: | ||
(assert (btr:object ?world :urdf ?robot ((0 0 0) (0 0 0 1)) :urdf , | (assert (btr:object ?world :urdf ?robot ((0 0 0) (0 0 0 1)) :urdf , | ||
- | (cram-robot-interfaces:robot-arms-parking-joint-states ?robot ? | + | (-> (rob-int: |
- | (assert (btr: | + | (assert (btr: |
- | (assert (btr: | + | (true)) |
+ | | ||
+ | | ||
+ | (true))))) | ||
</ | </ | ||
Line 595: | Line 598: | ||
< | < | ||
To execute any plan in CRAM, we need a top-level context. Besides that we also use a macro to specify that the demo should be executed in simulation, not on the real robot. Putting your plan under '' | To execute any plan in CRAM, we need a top-level context. Besides that we also use a macro to specify that the demo should be executed in simulation, not on the real robot. Putting your plan under '' | ||
+ | We can execute some movements in parallel, if they use different joints of the robot. That's what '' | ||
+ | We have used a simple call to low level methods to achieve motions like move to the ''? | ||
--></ | --></ | ||
Line 616: | Line 621: | ||
| | ||
(pr2-proj:: | (pr2-proj:: | ||
- | (pr2-proj:: | + | (pr2-proj:: |
</ | </ | ||
- | As some of the functions in '' | + | As some of the functions in '' |
- | We can execute some movements in parallel, if they use different joints of the robot. That's what '' | + | The function '' |
+ | <code lisp> | ||
+ | (prolog: | ||
+ | </ | ||
+ | '' | ||
- | To grasp the bottle we need to have its pose in the room. Therefore, we first perceive | + | Now, let us finally |
<code lisp> | <code lisp> | ||
BTW-TUT> | BTW-TUT> | ||
Line 631: | Line 640: | ||
</ | </ | ||
- | With that resulting perceived object we perform the picking up action. With the torso so far down we might not be able to reach for the bottle, so we need to also push the torso up: | + | With that resulting perceived object we could perform the picking up action. With the torso so far down we might not be able to reach the bottle, so we need to push the torso up: |
<code lisp> | <code lisp> | ||
(pr2-proj: | (pr2-proj: | ||
(let ((? | (let ((? | ||
- | (pr2-proj:: | + | (pr2-proj:: |
</ | </ | ||
As there is no atomic motion for picking up an object, in fact, picking up is comprised of multiple move-arm motions, | As there is no atomic motion for picking up an object, in fact, picking up is comprised of multiple move-arm motions, | ||
- | so pick up is implemented within a plan and called by performing an action designator. | + | pick up is implemented within a plan and called by performing an action designator. |