Skip to content

Conversation

@Myzhar
Copy link

@Myzhar Myzhar commented Sep 18, 2025

Replace
const rclcpp::Publisher<tf2_msgs::msg::TFMessage>::SharedPtr tf_pub_;
by
std::unique_ptr<tf2_ros::TransformBroadcaster> tf_broadcaster_;

For a correct TF broadcasting.

Using a standard publisher instead of tf2_ros::TransformBroadcaster caused the TF message to not work correctly if the AprilTag node was placed under a namespace, and in any case, it's not the "ROS way" for broadcasting TFs.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant