ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I have an answer, that is not nice, but works.

Go to /opt/ros/foxy/lib/python3.8/site-packages/tf2_ros/transform_listener.py and edit line 73 and 75 to your namespace.

self.tf_sub = node.create_subscription(
            TFMessage, 'namespace/tf', self.callback, qos, callback_group=self.group)
        self.tf_static_sub = node.create_subscription(
            TFMessage, 'namespace/tf_static', self.static_callback, static_qos, callback_group=self.group)

Hope it works in your distribution as well and helps.

I have an answer, that is not nice, but works.

Go to /opt/ros/foxy/lib/python3.8/site-packages/tf2_ros/transform_listener.py and edit line 73 and 75 to your namespace.namespace. (Or search it via an IDE from /opt/ros/foxy/lib/tf2_tools/view_frames.py :line 45)

self.tf_sub = node.create_subscription(
            TFMessage, 'namespace/tf', self.callback, qos, callback_group=self.group)
        self.tf_static_sub = node.create_subscription(
            TFMessage, 'namespace/tf_static', self.static_callback, static_qos, callback_group=self.group)

Hope it works in your distribution as well and helps.