Skip to content

Commit

Permalink
Removed useless origin field in Link and added Pose for type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Dafarra committed Mar 7, 2024
1 parent 72e7cb6 commit af2d1c4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/adam/model/abc_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
from adam.core.spatial_math import SpatialMath


@dataclasses.dataclass
class Pose:
"""Pose class"""

xyz: List
rpy: List


@dataclasses.dataclass
class Joint(abc.ABC):
"""Base Joint class. You need to fill at least these fields"""
Expand All @@ -17,7 +25,7 @@ class Joint(abc.ABC):
child: str
type: str
axis: List
origin: List
origin: Pose
limit: List
idx: int
"""
Expand Down Expand Up @@ -71,7 +79,6 @@ class Link(abc.ABC):
visuals: List
inertial: Inertial
collisions: List
origin: List

@abc.abstractmethod
def spatial_inertia(self) -> npt.ArrayLike:
Expand Down

0 comments on commit af2d1c4

Please sign in to comment.