Skip to content

Commit

Permalink
Move contact_model attribute in JaxSimModel
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Jun 18, 2024
1 parent dfebf77 commit 882a4a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/jaxsim/api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class JaxSimModel(JaxsimDataclass):
default=jaxsim.terrain.FlatTerrain(), repr=False
)

contact_model: jaxsim.rbda.ContactModel | None = dataclasses.field(
default=None, repr=False
)

kin_dyn_parameters: js.kin_dyn_parameters.KynDynParameters | None = (
dataclasses.field(default=None, repr=False)
)
Expand All @@ -50,10 +54,6 @@ class JaxSimModel(JaxsimDataclass):
def description(self) -> jaxsim.parsers.descriptions.ModelDescription:
return self._description.get()

contact_model: jaxsim.rbda.ContactModel | None = dataclasses.field(
default=None, repr=False, compare=False, hash=False
)

def __eq__(self, other: JaxSimModel) -> bool:

if not isinstance(other, JaxSimModel):
Expand Down

0 comments on commit 882a4a0

Please sign in to comment.