Comments (4)
That's a good point. I was actually considering looking into setting up apriltags with shared pointers to eliminate the need for subscription, but that's a little ways off.
#UPDATE#
After looking into this a little I've confirmed that disabling the subscription has a dramatic reduction in cpu usage vs intercepting a flag in the callback, so i'll be doing that. Thanks for the tip.
from apriltags.
Thanks @davelkan. The Apriltags node will actually stop running detections if there are no subscribers, so another option is to simply unsubscribe from the topic when you are not scanning for fiducials.
It might be a little bit slower, if that matters for your use case, but doing it this way also unsubscribes the node from the upstream image topic, which can free up lot of network bandwidth by not transporting the camera images.
https://github.com/personalrobotics/apriltags/blob/master/src/apriltags.cpp#L244
from apriltags.
I do have the changes I made working locally, though i have decided not to use them as your suggestion is better. If you would like me to push upstream anyways let me know.
from apriltags.
Glad to hear it's working for you!
from apriltags.
Related Issues (20)
- does not support 36h10 HOT 1
- Remove manifest.xml file
- Unused 'tf_frame' parameter HOT 2
- Break out messages into their own package
- Detects spurious "phantom" tags HOT 1
- Evaluate Apriltags library implementations HOT 4
- Compilation on 14.04 has problems HOT 3
- Lack of Nodelet Support HOT 1
- CMakeLists.txt file modification HOT 1
- Explanation of how to use `apriltags` for beginners. HOT 5
- Problems with ROS Kinetic and OpenCV3 HOT 11
- Is there a way to test a video rather than a live stream off a camera? HOT 1
- image_pipeline: issue with the decimation
- Exclude the github download HOT 4
- Unable to load msg HOT 2
- Use optical center from camera_info HOT 2
- AprilTags crashes everytime it detects a tag HOT 1
- CMake warning on compilation on Ubuntu 14.04
- Apriltags-cpp should be checked out at clone, not at build time HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apriltags.