File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1919env = swift .Swift ()
2020
2121# Launch the sim in chrome as only chrome supports webm videos
22- env .launch ("google-chrome" )
22+ env .launch (browser = "google-chrome" , realtime = True )
2323
2424# Create a Panda robot object
2525panda = rtb .models .Panda ()
3939env .start_recording ("panda_swift_recording" , 1 / dt )
4040
4141# To export as a gif replace the above line with
42- # env.start_recording(' panda_swift_recording' , 1 / dt, format=' gif' )
42+ # env.start_recording(" panda_swift_recording" , 1 / dt, format=" gif" )
4343
4444# To export as a tar folder of jpg captures replace with
4545# env.start_recording('panda_swift_recording', 1 / dt, format='jpg')
119119
120120# Stop recording and save the video (to the downloads folder)
121121env .stop_recording ()
122+
123+ # Hold is required for gifs which take extra time to process
124+ # env.hold()
You can’t perform that action at this time.
0 commit comments