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

Add option for single-shot detection and corresponding service. #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

neomanic
Copy link

We recently decided to switch from continuous tag detection to upon request, and I was surprised to see that the single image node actually reads and writes files from disk. The way I expected it to work was a service call to trigger a tag detection.

I've implemented a quick version of what I expected here. It extends the ContinuousDetector with a single_shot_detection parameter (default: false), which went set to true only runs tag detection after a service call. The service handler subscribes to the camera topic, and then only allows one image through before unsubscribing.

Comments and changes welcome.

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