Skip to content

Commit

Permalink
Fixed #7
Browse files Browse the repository at this point in the history
  • Loading branch information
driesmarzougui committed Mar 25, 2024
1 parent aa60ca3 commit 3d15ca7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moojoco/mjcf/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import numpy as np
from dm_control import mjcf
from dm_control.mjcf import export_with_assets
from dm_control.mjcf.element import _AttachmentFrame
from scipy.spatial.transform import Rotation


Expand Down Expand Up @@ -35,7 +36,7 @@ def attach(
position: Optional[np.ndarray] = None,
euler: Optional[np.ndarray] = None,
free_joint: bool = False,
) -> None:
) -> _AttachmentFrame:
attachment_site = self.mjcf_body.add(
"site",
name=f"{self.base_name}_attachment_{other.base_name}",
Expand Down

0 comments on commit 3d15ca7

Please sign in to comment.