Detecting AprilTags within simulation
Last updated
Last updated
An AprilTag is sort of like a QR code, but specifically for robotics. Because our cell phones typically have high resolution cameras, QR codes are quite high resolution. In robotics, camera resolutions are commonly quite low (think 320x240). AprilTags are a type of QR code specifically for low resolution cameras within the robotics space.
In NXP Gazebo, we use AprilTags to allow participants to detect objects within the simulation without actually writing computer vision code. Each AprilTag has an ID that will be detected by the included AprilTag detection node. All participants have to do is subscribe to the /apriltag/detections
ROS topic and check to see if an AprilTag has been detected!
We have updated NXP Gazebo's example code to include a section about subscribing to AprilTags. You can find this example code within the "aim_line_follow_c.cpp" file. To update your NXP Gazebo, follow the page below:
Updating NXP GazeboThe IDs for each AprilTag are as follows:
Stop sign: ID 0
Object obstructing road: ID 1