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:
parent
ea2e5d132a
commit
30c63ce2e5
@ -22,5 +22,5 @@ def run_task_4(ctrl, msg):
|
|||||||
|
|
||||||
turn_degree(ctrl, msg, 90, absolute=90)
|
turn_degree(ctrl, msg, 90, absolute=90)
|
||||||
|
|
||||||
go_straight(ctrl, msg, distance=10)
|
go_straight(ctrl, msg, distance=6)
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ class ImageSubscriber(Node):
|
|||||||
if self.cv_image is not None:
|
if self.cv_image is not None:
|
||||||
# Generate a timestamped filename
|
# Generate a timestamped filename
|
||||||
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
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)
|
cv2.imwrite(filename, self.cv_image)
|
||||||
self.get_logger().info(f"Saved image as {filename}")
|
self.get_logger().info(f"Saved image as {filename}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user