From ca34e6d2f464d1e58d23839e7b9fad2dbf0628ec Mon Sep 17 00:00:00 2001 From: Gior26 <37639274+Gior26@users.noreply.github.com> Date: Mon, 13 Nov 2023 15:03:01 +0100 Subject: [PATCH] Removed constant frame_prefix value in TFStaticRelay --- tf_relay/tf_static_relay.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tf_relay/tf_static_relay.py b/tf_relay/tf_static_relay.py index 3da6d36..94bce7d 100644 --- a/tf_relay/tf_static_relay.py +++ b/tf_relay/tf_static_relay.py @@ -22,10 +22,9 @@ def __init__(self, namespace, agent): msg_type=TFMessage, topic='/tf_static', qos_profile=QoSProfile(reliability=QoSReliabilityPolicy.RELIABLE, durability=QoSDurabilityPolicy.TRANSIENT_LOCAL , depth=10)) - self.frame_prefix = 'agent_1/' def static_tf_callback(self, msg): for transform in msg.transforms: transform.header.frame_id = self.frame_prefix + transform.header.frame_id transform.child_frame_id = self.frame_prefix + transform.child_frame_id - self.static_publisher.publish(msg) \ No newline at end of file + self.static_publisher.publish(msg)