mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2026-02-07 15:35:10 +00:00
protocol node 执行action不应携带自身device id
This commit is contained in:
@@ -214,7 +214,7 @@ class ROS2ProtocolNode(BaseROS2DeviceNode):
|
|||||||
if device_id in ["", None, "self"]:
|
if device_id in ["", None, "self"]:
|
||||||
action_id = f"/devices/{self.device_id}/{action_name}"
|
action_id = f"/devices/{self.device_id}/{action_name}"
|
||||||
else:
|
else:
|
||||||
action_id = f"/devices/{self.device_id}/{device_id}/{action_name}"
|
action_id = f"/devices/{device_id}/{action_name}" # 执行时取消了主节点信息 /{self.device_id}
|
||||||
|
|
||||||
# 检查动作客户端是否存在
|
# 检查动作客户端是否存在
|
||||||
if action_id not in self._action_clients:
|
if action_id not in self._action_clients:
|
||||||
|
|||||||
Reference in New Issue
Block a user