Skip to content

Commit

Permalink
Allow ContactsState to accept kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Sep 27, 2024
1 parent a4d1476 commit 486cc2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/jaxsim/rbda/contacts/relaxed_rigid.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ 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()
Expand Down
2 changes: 1 addition & 1 deletion src/jaxsim/rbda/contacts/rigid.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ 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()
Expand Down

0 comments on commit 486cc2b

Please sign in to comment.