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
Next revisionBoth sides next revision
tutorials:advanced:new-robot [2019/02/23 08:36] – [URDF] vanessatutorials:advanced:new-robot [2019/02/23 08:38] – [Spawn the robot in Bullet] vanessa
Line 219: Line 219:
  
 For reference and starting point take a look at those package for the pr2 or hsrb. For reference and starting point take a look at those package for the pr2 or hsrb.
-Open your ''roslisp_repl'' and load every packages you will need. +
  
  
Line 226: Line 226:
 ==== Spawn the robot in Bullet ==== ==== Spawn the robot in Bullet ====
  
-Use the Prolog assertion predicates. See example of how PR2 is spawned from a URDF in the bullet tutorial: http://cram-system.org/tutorials/intermediate/bullet_world#bullet_world_initialization.+Use the Prolog assertion predicates. See example of how PR2 is spawned from a URDF in the bullet tutorial: http://cram-system.org/tutorials/intermediate/bullet_world#bullet_world_initialization. Open your ''roslisp_repl'' and load the cram-bullet-world-tutorial, for now this containts everything we need for the first step
  
  
Line 260: Line 260:
                     (cram-robot-interfaces:robot ?robot)                     (cram-robot-interfaces:robot ?robot)
                     (assert (btr:object ?world :urdf ?robot ((0 0 0) (0 0 0 1)) :urdf ,robot-urdf))                     (assert (btr:object ?world :urdf ?robot ((0 0 0) (0 0 0 1)) :urdf ,robot-urdf))
-                    (cram-robot-interfaces:robot-arms-parking-joint-states ?robot ?joint-states) 
                     (assert (btr:joint-state ?world ?robot ?joint-states))                     (assert (btr:joint-state ?world ?robot ?joint-states))
                     (assert (btr:joint-state ?world ?robot (("torso_lift_joint" 0.15d0)))))))                     (assert (btr:joint-state ?world ?robot (("torso_lift_joint" 0.15d0)))))))