Skip to content

Commit

Permalink
Merge pull request #135 from ami-iit/fix/mujoco_user_camera
Browse files Browse the repository at this point in the history
Fix `RodModelToMjcf.convert` with no user camera specified
  • Loading branch information
diegoferigo committed Apr 4, 2024
2 parents e917034 + a14022c commit 3f5e01c
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 3f5e01c

Please sign in to comment.