From d9a90feb2523fc41b708c5952c367f619503b5db Mon Sep 17 00:00:00 2001 From: p-rosit Date: Thu, 12 Sep 2024 19:13:43 +0200 Subject: [PATCH] set a world model relation in a separate thread --- skiros2_std_skills/skiros2_std_skills/utility_primitives.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skiros2_std_skills/skiros2_std_skills/utility_primitives.py b/skiros2_std_skills/skiros2_std_skills/utility_primitives.py index c7a5c7d..e9c0179 100644 --- a/skiros2_std_skills/skiros2_std_skills/utility_primitives.py +++ b/skiros2_std_skills/skiros2_std_skills/utility_primitives.py @@ -2,6 +2,7 @@ from skiros2_common.core.primitive import PrimitiveBase from skiros2_common.core.world_element import Element from skiros2_common.core.params import ParamTypes +from skiros2_std_skills.thread_primitive import PrimitiveThreadBase ################################################################################# @@ -54,11 +55,11 @@ def createDescription(self): self.addParam("RelationState", True, ParamTypes.Required) -class wm_set_relation(PrimitiveBase): +class wm_set_relation(PrimitiveThreadBase): def createDescription(self): self.setDescription(WmSetRelation(), self.__class__.__name__) - def execute(self): + def run(self): src = self.params["Src"].value relation = self.params["Relation"].value dst = self.params["Dst"].value