Giter VIP home page Giter VIP logo

Comments (6)

wmeeusse avatar wmeeusse commented on September 17, 2024

The model we've been using is that every robot has it's own controller manager, with it's own set of hardware interfaces and it's own set controllers. In that model, each robot is namespaced, and every robot has a robot_description parameter in its own namespace. I think this model would also transfer to the gazebo world, with a controller manager plugin for each robot that is simulated.

As a second note, we can pass configuration parameters to each controller through the parameter server; it doesn't necessarily need to be passed on by the controller manager. But I'm hoping this won't be necessary if the above model can be applied to your use case.

from ros_controllers.

davetcoleman avatar davetcoleman commented on September 17, 2024

I agree with all of the above.

In that model, each robot is namespaced, and every robot has a robot_description parameter in its own namespace.

The problem is urdf.initParam() uses a non-namespaced nodehandle. See model.cpp

from ros_controllers.

jbohren avatar jbohren commented on September 17, 2024

As an aside, maybe urdf.initParam() could be overloaded to take a nodehandle or namespace string.

from ros_controllers.

davetcoleman avatar davetcoleman commented on September 17, 2024

I agree.

from ros_controllers.

wmeeusse avatar wmeeusse commented on September 17, 2024

+1 for fixing urdf.initParam().

As a workaround for now, you can use the urdf.initString() method in your controllers, and explicitly get the robot_description parameter from the controller manager nodehandle. So you basically implement the correct behavior of initParam() in the controller.

from ros_controllers.

davetcoleman avatar davetcoleman commented on September 17, 2024

Fixed in merge.

from ros_controllers.

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.