⚠️ Because /robot_tag_info depends on the tf tree, you must make the robot stand up for this topic to take effect
Based on the camera coordinate frame: /tag_detections; based on the robot base coordinate frame: /robot_tag_info
Modify the subscribed topic in the example program to obtain different pose information of the QR code relative to the camera coordinate frame and the robot base coordinate frame
AprilTagProcessor class: responsible for processing AprilTag detection data, including initializing the ROS node, converting quaternions to Euler angles, obtaining AprilTag data, looking up AprilTags by ID, and computing averaged AprilTag data.
quaternion_to_euler function: converts a quaternion to the yaw angle in Euler angles, used to represent rotation.
get_apriltag_data function: obtains AprilTag detection data from the ROS topic and extracts the ID, position, and orientation of each tag.
get_apriltag_by_id function: looks up AprilTag data by the specified ID.
get_averaged_apriltag_data function: obtains multiple detections of the AprilTag with the specified ID and computes its average position and orientation.
Main program: creates an AprilTagProcessor instance, initializes the ROS node, and obtains the averaged data of the AprilTag with the specified ID.