GithubHelp home page GithubHelp logo

Comments (4)

davelkan-zz avatar davelkan-zz commented on May 3, 2024 1

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.

psigen avatar psigen commented on May 3, 2024

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.

davelkan-zz avatar davelkan-zz commented on May 3, 2024

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.

psigen avatar psigen commented on May 3, 2024

Glad to hear it's working for you!

from apriltags.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.