File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/jsrm/rendering/planar_hsa Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def draw_robot(
101
101
print ("sol.ys =\n " , sol .ys )
102
102
103
103
# create video
104
- fourcc = cv2 .VideoWriter_fourcc (* "MP4V " )
104
+ fourcc = cv2 .VideoWriter_fourcc (* "mp4v " )
105
105
video_path .parent .mkdir (parents = True , exist_ok = True )
106
106
video = cv2 .VideoWriter (
107
107
str (video_path ),
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ def draw_robot(
158
158
plt .show ()
159
159
160
160
# create video
161
- fourcc = cv2 .VideoWriter_fourcc (* "MP4V " )
161
+ fourcc = cv2 .VideoWriter_fourcc (* "mp4v " )
162
162
video_path .parent .mkdir (parents = True , exist_ok = True )
163
163
video = cv2 .VideoWriter (
164
164
str (video_path ),
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ def animate_robot(
235
235
video_height: video height
236
236
"""
237
237
# create video
238
- fourcc = cv2 .VideoWriter_fourcc (* "MP4V " )
238
+ fourcc = cv2 .VideoWriter_fourcc (* "mp4v " )
239
239
filepath .parent .mkdir (parents = True , exist_ok = True )
240
240
video_dt = jnp .mean (video_ts [1 :] - video_ts [:- 1 ]).item ()
241
241
print (f"Rendering video with dt={ video_dt } and { video_ts .shape [0 ]} frames" )
You can’t perform that action at this time.
0 commit comments