Skip to content

Commit

Permalink
set a world model relation in a separate thread
Browse files Browse the repository at this point in the history
  • Loading branch information
p-rosit committed Sep 12, 2024
1 parent 7cf96a6 commit d9a90fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions skiros2_std_skills/skiros2_std_skills/utility_primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


#################################################################################
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d9a90fe

Please sign in to comment.