Skip to content

Commit

Permalink
add pr2-interface setup function
Browse files Browse the repository at this point in the history
  • Loading branch information
YoheiKakiuchi committed Jun 12, 2012
1 parent fe0d7d4 commit 284901f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pr2eus/pr2-interface.l
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,19 @@
;;;;;
;;;;; utility functions pr2 robot
;;;;;
(defun setup-for-pr2 (&optional (viewer))
;; env
(unless (boundp '*pr2*) (pr2))
(unless (boundp '*ri*) (setq *ri* (instance pr2-interface :init)))

(ros::spin-once)
(send *ri* :spin-once)

(send *pr2* :angle-vector (send *ri* :state :potentio-vector))
;;(send *pr2* :move-to (send *ri* :state :worldcoords) :world)

(when viewer (objects (list *pr2*)))
)

;; (list larm-v rarm-v)
(defconstant *pr2-tuckarm-pose-rarm-free* (list #f( 5 70 105 -90 -70 -6 -20)
Expand Down

0 comments on commit 284901f

Please sign in to comment.