refactor(task_4): adjust movement parameters and image save path

- Modify go_straight distance from 10 to 6 in task 4
- Update image save path in rgb-camera test
This commit is contained in:
havoc420ubuntu 2025-05-25 08:53:13 +00:00
parent ea2e5d132a
commit 30c63ce2e5
2 changed files with 2 additions and 2 deletions

View File

@ -22,5 +22,5 @@ def run_task_4(ctrl, msg):
turn_degree(ctrl, msg, 90, absolute=90)
go_straight(ctrl, msg, distance=10)
go_straight(ctrl, msg, distance=6)

View File

@ -51,7 +51,7 @@ class ImageSubscriber(Node):
if self.cv_image is not None:
# Generate a timestamped filename
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
filename = f"captured_images/path/image_{timestamp}.png"
filename = f"../captured_images/test/image_{timestamp}.png"
cv2.imwrite(filename, self.cv_image)
self.get_logger().info(f"Saved image as {filename}")