Skip to content

Commit

Permalink
Merge pull request #246 from ami-iit/fix/contacts_state_zero
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti authored Sep 27, 2024
2 parents a4d1476 + a7531ae commit 9e29f06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/jaxsim/rbda/contacts/relaxed_rigid.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ def build(cls: type[Self]) -> Self:
return cls()

@classmethod
def zero(cls: type[Self]) -> Self:
def zero(cls: type[Self], **kwargs) -> Self:
"""Build a zero `RelaxedRigidContactsState` instance from a `JaxSimModel`."""

return cls.build()

def valid(self, *, model: js.model.JaxSimModel) -> jtp.BoolLike:
def valid(self, **kwargs) -> jtp.BoolLike:
return True


Expand Down
4 changes: 2 additions & 2 deletions src/jaxsim/rbda/contacts/rigid.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ def build(cls: type[Self]) -> Self:
return cls()

@classmethod
def zero(cls: type[Self]) -> Self:
def zero(cls: type[Self], **kwargs) -> Self:
"""Build a zero `RigidContactsState` instance from a `JaxSimModel`."""

return cls.build()

def valid(self) -> jtp.BoolLike:
def valid(self, **kwargs) -> jtp.BoolLike:
return True


Expand Down

0 comments on commit 9e29f06

Please sign in to comment.