Skip to content

Fix TF broadcasting for the detected AprilTags#64

Open
Myzhar wants to merge 1 commit into
NVIDIA-ISAAC-ROS:mainfrom
Myzhar:main
Open

Fix TF broadcasting for the detected AprilTags#64
Myzhar wants to merge 1 commit into
NVIDIA-ISAAC-ROS:mainfrom
Myzhar:main

Conversation

@Myzhar

@Myzhar Myzhar commented Sep 18, 2025

Copy link
Copy Markdown

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