Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions apriltag_ros/msg/AprilTagDetection.msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Tag/Tag Bundle name. Default names are tag_ID, where ID is the tag ID and bundle_I
# where I is the bundle index.
string name
# Tag ID(s). If a standalone tag, this is a vector of size 1. If a tag bundle,
# this is a vector containing the IDs of each tag in the bundle.
int32[] id
Expand Down
2 changes: 2 additions & 0 deletions apriltag_ros/src/common_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ AprilTagDetectionArray TagDetector::detectTags (

// Add the detection to the back of the tag detection array
AprilTagDetection tag_detection;
tag_detection.name = standaloneDescription->frame_name();
tag_detection.pose = tag_pose;
tag_detection.id.push_back(detection->id);
tag_detection.size.push_back(tag_size);
Expand Down Expand Up @@ -382,6 +383,7 @@ AprilTagDetectionArray TagDetector::detectTags (

// Add the detection to the back of the tag detection array
AprilTagDetection tag_detection;
tag_detection.name = bundleName;
tag_detection.pose = bundle_pose;
tag_detection.id = bundle.bundleIds();
tag_detection.size = bundle.bundleSizes();
Expand Down