def send_stereo_camera(self):
# Black and white image is about 225K
# That should consume about 2 seconds worth of bandwidth; hopefully be okay
self.cloud = self.zarj.eyes.get_stereo_cloud()
img, self.img_details = self.zarj.eyes.get_cloud_image_with_details(self.cloud)
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
(_, png) = cv2.imencode(".png", gray)
picturemsg = ZarjPicture("Image of satellite hands", png, True)
picturemsg.time = rospy.get_time()
self.points = [ None, None ]
self.zarj_comm.push_message(picturemsg)
评论列表
文章目录