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:pepper_shopping [2020/08/19 16:04] derricktutorials:intermediate:pepper_shopping [2022/02/08 14:11] (current) – [Creating an ASDF system for the cram_pepper_demo] sarthou
Line 1: Line 1:
-====== Pepper robot shopping assistant ======+====== Pepper Robot Shopping Assistant ======
  
 ===== Setting Up The Workspace ===== ===== Setting Up The Workspace =====
Line 907: Line 907:
  
   )   )
-<code>+</code>
  
 This function creates the bullet-world, extracts the necessary information about the robot and the shelves from the ros-parameter server, spawns a static floor (plane), generates the shelves, and spawns the robot. This function creates the bullet-world, extracts the necessary information about the robot and the shelves from the ros-parameter server, spawns a static floor (plane), generates the shelves, and spawns the robot.
Line 1823: Line 1823:
  
  ((cram-common-failures:ptu-goal-not-reached (e)  ((cram-common-failures:ptu-goal-not-reached (e)
-        ; (print e) 
  
         (roslisp:ros-warn (perception-failure) "~a~%Looking at product went wrong...repositioning" e)         (roslisp:ros-warn (perception-failure) "~a~%Looking at product went wrong...repositioning" e)
Line 1870: Line 1869:
  ?location-pose  ?location-pose
  (cram-tf:robot-current-pose)))  (cram-tf:robot-current-pose)))
 +</code>
  
 This function also contains another helper function. Let’s add it. This function also contains another helper function. Let’s add it.
 +
 +<code lisp>
 ;;"Given a `look-pose-stamped' and a `robot-pose-stamped' (both in fixed frame), ;;"Given a `look-pose-stamped' and a `robot-pose-stamped' (both in fixed frame),
 ;; calculate the new robot-pose-stamped, which is rotated with an angle to point towards ;; calculate the new robot-pose-stamped, which is rotated with an angle to point towards