Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distance limit #136

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions apriltag_ros/src/common_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ AprilTagDetectionArray TagDetector::detectTags (
tag_detection.pose = tag_pose;
tag_detection.id.push_back(detection->id);
tag_detection.size.push_back(tag_size);
// This pr chooses the distance limit to push detection array, default selection 1.4 meter.
if (tag_detection.pose.pose.pose.position.z < 1.4)
tag_detection_array.detections.push_back(tag_detection);
detection_names.push_back(standaloneDescription->frame_name());
}
Expand Down