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
Last revisionBoth sides next revision
tutorials:intermediate:pepper_shopping [2020/08/19 15:59] – [Pepper robot shopping assistant (tutorial in construction)] derricktutorials:intermediate:pepper_shopping [2022/02/08 14:08] – [Generating Robot Pose] sarthou
Line 1: Line 1:
-====== Pepper robot shopping assistant ======+====== Pepper Robot Shopping Assistant ======
  
 ===== Setting Up The Workspace ===== ===== Setting Up The Workspace =====
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
Line 2030: Line 2032:
  
 Congratulations!!! You just created a shopping assistant using the Pepper robot.  Congratulations!!! You just created a shopping assistant using the Pepper robot. 
 +
 +You can access the entire project from [[https://github.com/danricky/cram-pepper|here]]