Skip to content

Commit

Permalink
[jsk_fetch_startup] publish /head_camera/rgb/image_rect_color as /pho…
Browse files Browse the repository at this point in the history
…to_taken topic
  • Loading branch information
mqcmd196 authored and tkmtnt7000 committed Aug 23, 2022
1 parent 6d5475f commit acf1026
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions jsk_fetch_robot/jsk_fetch_startup/euslisp/navigation-utils.l
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ Args:
;; sink
(tweet-string "I took a photo at 73B2 Kitchen sink." :warning-time 3
:with-image "/edgetpu_object_detector/output/image" :speak t)
(let ((img (one-shot-subscribe "/head_camera/rgb/image_raw" sensor_msgs::Image)))
(let ((img (one-shot-subscribe "/head_camera/rgb/image_rect_color" sensor_msgs::Image)))
(ros::publish "/photo_taken" img))
(take-photo "kitchen_sink.jpg")
(notify-recognition :location "kitchen sink"))
Expand Down Expand Up @@ -474,7 +474,7 @@ Args:
(progn
(tweet-string "I took a photo in front of the dock." :warning-time 3
:with-image "/edgetpu_object_detector/output/image" :speak t)
(let ((img (one-shot-subscribe "/head_camera/rgb/image_raw" sensor_msgs::Image)))
(let ((img (one-shot-subscribe "/head_camera/rgb/image_rect_color" sensor_msgs::Image)))
(ros::publish "/photo_taken" img)))))

(defun inspect-tv-front (&key (tweet t))
Expand All @@ -486,7 +486,7 @@ Args:
(progn
(tweet-string "I took a photo in front of the tv." :warning-time 3
:with-image "/edgetpu_object_detector/output/image" :speak t)
(let ((img (one-shot-subscribe "/head_camera/rgb/image_raw" sensor_msgs::Image)))
(let ((img (one-shot-subscribe "/head_camera/rgb/image_rect_color" sensor_msgs::Image)))
(ros::publish "/photo_taken" img)))))

(defun inspect-tv-desk (&key (tweet t))
Expand All @@ -498,7 +498,7 @@ Args:
(progn
(tweet-string "I took a photo in front of the tv." :warning-time 3
:with-image "/edgetpu_object_detector/output/image" :speak t)
(let ((img (one-shot-subscribe "/head_camera/rgb/image_raw" sensor_msgs::Image)))
(let ((img (one-shot-subscribe "/head_camera/rgb/image_rect_color" sensor_msgs::Image)))
(ros::publish "/photo_taken" img)))))

(defun inspect-desk-back (&key (tweet t))
Expand All @@ -510,7 +510,7 @@ Args:
(progn
(tweet-string "I took a photo of desks." :warning-time 3
:with-image "/edgetpu_object_detector/output/image" :speak t)
(let ((img (one-shot-subscribe "/head_camera/rgb/image_raw" sensor_msgs::Image)))
(let ((img (one-shot-subscribe "/head_camera/rgb/image_rect_color" sensor_msgs::Image)))
(ros::publish "/photo_taken" img)))))

(defun inspect-desk-front (&key (tweet t))
Expand All @@ -522,7 +522,7 @@ Args:
(progn
(tweet-string "I took a photo of desks." :warning-time 3
:with-image "/edgetpu_object_detector/output/image" :speak t)
(let ((img (one-shot-subscribe "/head_camera/rgb/image_raw" sensor_msgs::Image)))
(let ((img (one-shot-subscribe "/head_camera/rgb/image_rect_color" sensor_msgs::Image)))
(ros::publish "/photo_taken" img)))))

(defun inspect-kitchen-door-front (&key (tweet t))
Expand All @@ -534,7 +534,7 @@ Args:
(progn
(tweet-string "I took a photo of kitchen." :warning-time 3
:with-image "/edgetpu_object_detector/output/image" :speak t)
(let ((img (one-shot-subscribe "/head_camera/rgb/image_raw" sensor_msgs::Image)))
(let ((img (one-shot-subscribe "/head_camera/rgb/image_rect_color" sensor_msgs::Image)))
(ros::publish "/photo_taken" img)))))

(defun inspect-trashcan (&key (tweet t))
Expand All @@ -553,7 +553,7 @@ Args:
(send *ri* :wait-interpolation)
(tweet-string "I took a photo of 73B2 trash can inside." :warning-time 3
:with-image "/edgetpu_object_detector/output/image" :speak t)
(let ((img (one-shot-subscribe "/head_camera/rgb/image_raw" sensor_msgs::Image)))
(let ((img (one-shot-subscribe "/head_camera/rgb/image_rect_color" sensor_msgs::Image)))
(ros::publish "/photo_taken" img))
(take-photo "trashcan_inside.jpg")
(notify-recognition :location "trash cans inside")
Expand Down

0 comments on commit acf1026

Please sign in to comment.