Differences
This shows you the differences between two versions of the page.
tutorials:demo:fetch_and_place_2 [2021/11/03 16:33] – created arthur | tutorials:demo:fetch_and_place_2 [2021/11/03 16:38] (current) – arthur | ||
---|---|---|---|
Line 172: | Line 172: | ||
This should have spawned a green sausage on the floor near the origin of the " | This should have spawned a green sausage on the floor near the origin of the " | ||
{{ : | {{ : | ||
+ | |||
+ | ==== Visualizing Coordinates ==== | ||
+ | |||
+ | If you want to know if a coordinate you defined is correct, you can visualize the axis of the coordinate frame in the Bullet World and see for yourself. | ||
+ | Try the following: | ||
+ | |||
+ | <code lisp> | ||
+ | PP-TUT> (visualize-coordinates :bottle) | ||
+ | </ | ||
+ | This will spawn a coordinate frame on our bottle object. | ||
+ | The argument here is the object type for which we want to visualize the coordinates. | ||
+ | Make sure you use '':'' | ||
+ | {{ : | ||
+ | |||
+ | You can also visualize the coordinates of an object with a specific name: | ||
+ | <code lisp> | ||
+ | PP-TUT> (spawn-object '((1.5 1 1) (0 0 0 1)) :weisswurst ' | ||
+ | PP-TUT> (visualize-coordinates ' | ||
+ | </ | ||
+ | This will spawn a green sausage on the sink counter and visualize its coordinate frame. | ||
+ | Note how here we used the name of the object, ''' | ||
+ | weisswurst might have a different coordinate axes than that shown in the picture below for you below because of | ||
+ | its shape and the randomness of the simulation// | ||
+ | {{ : | ||
+ | |||
+ | You can also visualize poses that don't have any objects on them yet, for example: | ||
+ | <code lisp> | ||
+ | PP-TUT> (init-projection) | ||
+ | PP-TUT> (visualize-coordinates *base-pose-near-table*) | ||
+ | </ | ||
+ | You will see the coordinate near the table on the right side of the kitchen visualized. | ||
+ | {{ : | ||
+ | |||
+ | You can also change the scale of the coordinate frame, if you don't quite see it: | ||
+ | <code lisp> | ||
+ | PP-TUT> (visualize-coordinates *base-pose-near-table* 1.0) | ||
+ | </ | ||
+ | That will make the axes 1 meter long. | ||
+ | {{ : | ||
+ | |||
==== Perceiving Objects ==== | ==== Perceiving Objects ==== | ||
Line 269: | Line 309: | ||
'' | '' | ||
+ | |||
==== Picking up Objects ==== | ==== Picking up Objects ==== |