Skip to content

Commit

Permalink
add tape stand template matching
Browse files Browse the repository at this point in the history
  • Loading branch information
YUKINA-3252 committed Dec 27, 2023
1 parent 626dabe commit 66d0388
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion jsk_perception/sample/pose_detector_auto_gen_sample.l
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@
(send obj :name "jetson_box")
obj))

(defun make-tape-stand ()
(let ((obj (make-cube 90 130 60)))
(setq aface (send obj :face 0))
(send obj :paste-texture-to-face aface
:file "tape-stand.png")
(send obj :name "tape_stand")
obj))

;; < 2 >
;; . generate launch file
(defun generate-launcher ()
Expand All @@ -54,15 +62,30 @@
"jetson-box.launch" :ns "/realsense_torso/color"
:image-remap-args '(("image" "image_rect_color"))
:gen-image-feature t
:image-topic "image_rect_color"
:image-topic "image_raw"
:image-topic-transport "compressed"
:gen-object-marker t
;; :object-frame-id "/base"
:object-frame-id "/base"
:objectdetection-solve-tf t
:objectdetection-remap-args '(("input/ObjectDetection" "ObjectDetection"))
:object-builder (format nil "(make-cube ~A ~A ~A)" (elt (car (send obj :csg)) 1) (elt (car (send obj :csg)) 2) (elt (car (send obj :csg)) 3))
:publish-tf t
))
(let ((obj (make-tape-stand)))
(gen-all-launch (list obj)
"tape-stand.launch" :ns "/head_camera/rgb"
:image-remap-args '(("image" "image_raw"))
:gen-image-feature t
:image-topic "image_raw"
:image-topic-transport "compressed"
:gen-object-marker t
:object-frame-id "/WAIST"
:objectdetection-solve-tf t
:objectdetection-remap-args '(("input/ObjectDetection" "ObjectDetection"))
:object-builder (format nil "(make-cube ~A ~A ~A)" (elt (car (send obj :csg)) 1) (elt (car (send obj :csg)) 2) (elt (car (send obj :csg)) 3))
:publish-tf t
))
)
(warn ";; (generate-launcher)~%")

Expand Down

0 comments on commit 66d0388

Please sign in to comment.