From 749dc591b3796618b31d9d3fe704c7f90b7b02b5 Mon Sep 17 00:00:00 2001 From: Abdelrhman Bassiouny Date: Thu, 17 Oct 2024 13:05:55 +0200 Subject: [PATCH] [World] Changed bounding box methods to not being abstract since there is a default implementation for them now. --- src/pycram/datastructures/world.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pycram/datastructures/world.py b/src/pycram/datastructures/world.py index 5591f1227..6ca49fd4f 100644 --- a/src/pycram/datastructures/world.py +++ b/src/pycram/datastructures/world.py @@ -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: """ @@ -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: """