Skip to content

Commit

Permalink
[World] Changed bounding box methods to not being abstract since ther…
Browse files Browse the repository at this point in the history
…e is a default implementation for them now.
  • Loading branch information
AbdelrhmanBassiouny committed Oct 17, 2024
1 parent 146d214 commit 749dc59
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pycram/datastructures/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -852,14 +852,13 @@ def get_colors_of_object_links(self, obj: Object) -> Dict[str, Color]:
"""
pass

@abstractmethod
def get_object_axis_aligned_bounding_box(self, obj: Object) -> AxisAlignedBoundingBox:
"""
:param obj: The object for which the bounding box should be returned.
:return: the axis aligned bounding box of this object. The return of this method are two points in
world coordinate frame which define a bounding box.
"""
pass
raise NotImplementedError

def get_object_rotated_bounding_box(self, obj: Object) -> RotatedBoundingBox:
"""
Expand All @@ -869,14 +868,13 @@ def get_object_rotated_bounding_box(self, obj: Object) -> RotatedBoundingBox:
"""
raise NotImplementedError

@abstractmethod
def get_link_axis_aligned_bounding_box(self, link: Link) -> AxisAlignedBoundingBox:
"""
:param link: The link for which the bounding box should be returned.
:return: The axis aligned bounding box of the link. The return of this method are two points in
world coordinate frame which define a bounding box.
"""
pass
raise NotImplementedError

def get_link_rotated_bounding_box(self, link: Link) -> RotatedBoundingBox:
"""
Expand Down

0 comments on commit 749dc59

Please sign in to comment.