Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrhm committed Nov 10, 2024
1 parent 1db5656 commit 5af9018
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/image_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,17 @@ def save_image(self, msg: Image):
img = np.frombuffer(msg.data, dtype=np.uint8).reshape(msg.height, msg.width, -1)
unique_id = "{date:%Y-%m-%d_%H:%M:%S}".format(date=datetime.datetime.now())

path = Path(get_package_share_directory("mrover")) / ".."/ ".." / ".." / ".." / "src" / "mrover" / "data" / "images"
path = (
Path(get_package_share_directory("mrover"))
/ ".."
/ ".."
/ ".."
/ ".."
/ "src"
/ "mrover"
/ "data"
/ "images"
)

if not path.exists():
path.mkdir(parents=True, exist_ok=True)
Expand Down

0 comments on commit 5af9018

Please sign in to comment.