Skip to content

Commit

Permalink
Update conftest.py to new ROD URDF exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed May 22, 2024
1 parent e6cd3c0 commit d765203
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ def jaxsim_model_box() -> js.model.JaxSimModel:
)

# Export the URDF string.
urdf_string = rod.urdf.exporter.UrdfExporter.sdf_to_urdf_string(
sdf=rod_model, pretty=True, gazebo_preserve_fixed_joints=True
)
urdf_string = rod.urdf.exporter.UrdfExporter(
pretty=True, gazebo_preserve_fixed_joints=True
).to_urdf_string(sdf=rod_model)

return build_jaxsim_model(model_description=urdf_string)

Expand Down Expand Up @@ -169,8 +169,8 @@ def jaxsim_model_sphere() -> js.model.JaxSimModel:
)

# Export the URDF string.
urdf_string = rod.urdf.exporter.UrdfExporter.sdf_to_urdf_string(
sdf=rod_model, pretty=True
urdf_string = rod.urdf.exporter.UrdfExporter(pretty=True).to_urdf_string(
sdf=rod_model
)

return build_jaxsim_model(model_description=urdf_string)
Expand Down

0 comments on commit d765203

Please sign in to comment.