change location of camera image

This commit is contained in:
Sem van der Hoeven
2023-05-30 14:50:51 +02:00
parent bc1bc0dae6
commit 00f6307909
3 changed files with 12 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ class CameraController(Node):
if (request.input_name == "default"):
self.get_logger().info("Taking picture with default filename")
now = datetime.now().strftime("droneimage_%Y-%m-%d_%H-%M-%S")
imagename = "/home/ubuntu/drone_img/" + now + ".jpg"
imagename = "/home/ubuntu/ros2_ws/api/public/img/" + now + ".jpg"
response.filename = imagename
else:
response.filename = request.input_name