smarts.env.wrappers.recorder_wrapper module

class smarts.env.wrappers.recorder_wrapper.RecorderWrapper(*args: Any, **kwargs: Any)[source]

A Wrapper that interacts the gym environment with the GifRecorder to record video step by step.

close()[source]

Close the recorder by deleting the image folder and generate the gif file.

next_frame_id()[source]

Get the id for next frame.

reset(**kwargs)[source]

Reset the gym environment and restart recording.

start_recording()[source]

Start the gif recorder and capture the first frame.

step(action)[source]

Step the environment using the action and record the next frame.

stop_recording()[source]

Stop recording.