Skip to content

Commit

Permalink
Video saving path name #197
Browse files Browse the repository at this point in the history
  • Loading branch information
JacopoPan committed Mar 24, 2024
1 parent 235c896 commit 50d1a95
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gym_pybullet_drones/envs/BaseAviary.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,8 @@ def _startVideoRecording(self):
"""
if self.RECORD and self.GUI:
VIDEO_FOLDER = os.path.join(self.OUTPUT_FOLDER, "recording_" + datetime.now().strftime("%m.%d.%Y_%H.%M.%S"))
os.makedirs(os.path.dirname(VIDEO_FOLDER), exist_ok=True)
self.VIDEO_ID = p.startStateLogging(loggingType=p.STATE_LOGGING_VIDEO_MP4,
fileName=os.path.join(VIDEO_FOLDER, "output.mp4"),
fileName=os.path.join(self.OUTPUT_FOLDER, "video-"+datetime.now().strftime("%m.%d.%Y_%H.%M.%S")+".mp4"),
physicsClientId=self.CLIENT
)
if self.RECORD and not self.GUI:
Expand Down

0 comments on commit 50d1a95

Please sign in to comment.