Skip to content

Commit

Permalink
Fix RodModelToMjcf.convert with no user camera specified
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Apr 4, 2024
1 parent e917034 commit a14022c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jaxsim/mujoco/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def convert(
)

# Add user-defined camera
cameras = cameras if cameras is not None else {}
cameras = cameras if cameras is not None else []
for camera in cameras if isinstance(cameras, list) else [cameras]:
mj_camera = MujocoCamera.build(**camera)
_ = ET.SubElement(
Expand Down

0 comments on commit a14022c

Please sign in to comment.