This commit is contained in:
wty-yy
2025-12-18 13:50:23 +08:00
parent 9d509829a5
commit 1e1a04b4c0
18 changed files with 195 additions and 60 deletions

View File

@@ -25,8 +25,10 @@ class MujocoConfig(Config):
class render:
save_video = False
video_fps = 30
height = 480
width = 640
height = 480
# width = 1920
# height = 1080
class domain_rand:
# With randomization

View File

@@ -145,7 +145,7 @@ class MujocoSimulator:
vid_path,
fps=self.cfg.render.video_fps,
)
self.vid_frame_skip = int(1 / (self.cfg.render.video_fps * self.sim_dt * 2))
self.vid_frame_skip = int(1 / (self.cfg.render.video_fps * self.sim_dt))
logger.info(f"Simulation video saved at: {vid_path}")
self.vid_count += 1