From ef0e20b892ca9873f0acc15383f4cb68776f5295 Mon Sep 17 00:00:00 2001
From: Tommy Persson <tommy.persson@liu.se>
Date: Wed, 23 Apr 2025 11:53:16 +0200
Subject: [PATCH] Work on DAEP

---
 lrs_exec/command.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lrs_exec/command.py b/lrs_exec/command.py
index 2355789..730cbb6 100644
--- a/lrs_exec/command.py
+++ b/lrs_exec/command.py
@@ -20,11 +20,11 @@ from unique_identifier_msgs.msg import UUID
 from lrs_util.coordtrans import CoordTrans
 
 class GetCurrentPositionClient():
-    def __init__(self, node, shutdown=False):
+    def __init__(self, node, shutdown=False, callback_group=None):
         self.node = node
         self.result = None
         self.shutdown = shutdown        
-        self.cli = node.create_client(GetCurrentPosition, 'get_current_position')
+        self.cli = node.create_client(GetCurrentPosition, 'get_current_position', callback_group=callback_group)
         while not self.cli.wait_for_service(timeout_sec=1.0):
             self.node.get_logger().info('GetCurrentPosition service not available, waiting again...')
         self.req = GetCurrentPosition.Request()
-- 
GitLab