Skip to content

Commit

Permalink
[defaultprocess_dect] try catch for attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
sunava committed Dec 4, 2024
1 parent e6f5355 commit 1675e60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pycram/process_modules/default_process_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ def _execute(self, designator: DetectingMotion):
front_facing_axis = camera_description.front_facing_axis
query_result = []
world_objects = []
object_types = designator.object_designator_description.types
try:
object_types = designator.object_designator_description.types
except AttributeError:
object_types = None
if designator.technique == DetectionTechnique.TYPES:
for obj_type in object_types:
list1 = World.current_world.get_object_by_type(obj_type)
Expand Down

0 comments on commit 1675e60

Please sign in to comment.