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 19
19
env = swift .Swift ()
20
20
21
21
# Launch the sim in chrome as only chrome supports webm videos
22
- env .launch ("google-chrome" )
22
+ env .launch (browser = "google-chrome" , realtime = True )
23
23
24
24
# Create a Panda robot object
25
25
panda = rtb .models .Panda ()
39
39
env .start_recording ("panda_swift_recording" , 1 / dt )
40
40
41
41
# 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" )
43
43
44
44
# To export as a tar folder of jpg captures replace with
45
45
# env.start_recording('panda_swift_recording', 1 / dt, format='jpg')
119
119
120
120
# Stop recording and save the video (to the downloads folder)
121
121
env .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