Camera node to take pictures is done #6

Merged
SemvdH merged 38 commits from camera into main 2023-05-10 12:43:47 +00:00
Showing only changes of commit c7fac34a23 - Show all commits

View File

@@ -19,6 +19,7 @@ class CameraController(Node):
CAMERA_PROP_HEIGHT = 4
self.capture.set(CAMERA_PROP_WIDTH, RES_4K_W)
self.capture.set(CAMERA_PROP_HEIGHT, RES_4K_H)
self.get_logger().info("Camera resolution set to " + str(self.capture.get(CAMERA_PROP_WIDTH)) + "x" + str(self.capture.get(CAMERA_PROP_HEIGHT)))
self.get_logger().info("Camera controller started. Waiting for service call...")
self.srv = self.create_service(TakePicture, 'drone/picture', self.take_picture_callback)