Coder Social home page Coder Social logo

std::shared_ptr ? about class_loader HOT 4 CLOSED

bmagyar avatar bmagyar commented on August 19, 2024
std::shared_ptr ?

from class_loader.

Comments (4)

mikaelarguedas avatar mikaelarguedas commented on August 19, 2024

Yes, the ros2 branch of this repo doesn't have any dependency on boost anymore. I was hoping to provide an std version of the various APIs by melodic but didnt get around doing it yet.

As modifying the signature of createInstance will require any downstream package to adapt their code, I was thinking of creating a createSharedInstance equivalent and deprecating the existing one.
Would that work for your use case ? (this will likely need pluginlib to do the same to be really useful, there's work in that direction here as well, but same thing not sure It'll be released in time for melodic)

from class_loader.

bmagyar avatar bmagyar commented on August 19, 2024

from class_loader.

mikaelarguedas avatar mikaelarguedas commented on August 19, 2024

the header file deprecation has been merged into Kinetic already,

The new headers are available on all active ROS distros (including indigo) so there should be no requirement for maintainers to branch out. And the headers should not be deprecated for Kinetic (or any distro except melodic) otherwise I messed up something along the way o_O.

I'd opt for getting the whole package done for Melodic :)

Agreed, that's the desired outcome, and I'll try to make it happen, in any spare cycle I can find.

Can you confirm that the API suggested above satisfies your use case?

from class_loader.

bmagyar avatar bmagyar commented on August 19, 2024

The header deprecation is all ok but I suppose many decided not to live with those warnings :)

Thanks, it would be great to have this for Melodic!

Most XyzSharedPtr already use std::shared_ptr, now packages either have a consistent pointer typedef set and they explicitly declare pluginlib-returned instances to use boost::shared_ptr or they have a mix of the two in the pointer typedefs.

The suggested API would provide a solution that can work for the long run.

from class_loader.

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.