Skip to content

Commit

Permalink
Merge pull request ami-iit#216 from ami-iit/patch-camera
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti authored Jul 26, 2024
2 parents a58766b + 04705ba commit 14b401c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/jaxsim/mujoco/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,12 @@ def convert(
model_name: str | None = None,
plane_normal: tuple[float, float, float] = (0, 0, 1),
heightmap: bool | None = None,
cameras: list[dict[str, str]] | dict[str, str] | None = None,
cameras: (
MujocoCamera
| Sequence[MujocoCamera]
| dict[str, str]
| Sequence[dict[str, str]]
) = (),
) -> tuple[str, dict[str, Any]]:
"""
Converts a URDF file to a Mujoco MJCF string.
Expand Down Expand Up @@ -574,7 +579,12 @@ def convert(
model_name: str | None = None,
plane_normal: tuple[float, float, float] = (0, 0, 1),
heightmap: bool | None = None,
cameras: list[dict[str, str]] | dict[str, str] | None = None,
cameras: (
MujocoCamera
| Sequence[MujocoCamera]
| dict[str, str]
| Sequence[dict[str, str]]
) = (),
) -> tuple[str, dict[str, Any]]:
"""
Converts a SDF file to a Mujoco MJCF string.
Expand Down

0 comments on commit 14b401c

Please sign in to comment.