Giter Club home page Giter Club logo

Comments (6)

gavanderhoorn avatar gavanderhoorn commented on May 30, 2024 2

I would say "officially", drivers should always have used the *Controller approach to publish additional information. Even in ros_control (ie: the ROS 1 version).

It's just that it was so easy to do it with realtime publishers from the hardware_interface itself, no one really bothered.

ps: I really don't like to use the Controller suffix for something which doesn't actually control anything. I believe we don't have to any more in ros2_control, so it would be great if we could avoid it. It leads to many questions ("ah, so the joint_state_controller let's me execute motions?", well, no ..).

from universal_robots_ros2_driver.

destogl avatar destogl commented on May 30, 2024 1

Mid-term improvements on the ros2_control side as discussed in today's meeting:

from universal_robots_ros2_driver.

livanov93 avatar livanov93 commented on May 30, 2024

Here I am more fan of multiple controller creation which would be based on controller_interface.
This approach only tends to make a huge list of state and command controllers like:

  • TcpPoseStateController
  • IOStateController
  • IOController
  • RobotModeStateController
  • SafetyModeStateController
  • SpeedSliderController
  • ToolStateController
  • ExternalUrScriptController
  • ResetMotionController
    ...
    These controllers would interface with driver via one of these state, command or sensor interfaces.

Other option is to hold onto ROS1 approach and spin multiple threads and callbacks within hardware interface to register topics.

from universal_robots_ros2_driver.

AndyZe avatar AndyZe commented on May 30, 2024

^that's my understanding from ros2_control meetings, as well

from universal_robots_ros2_driver.

livanov93 avatar livanov93 commented on May 30, 2024

ros-controls/ros2_control#318

from universal_robots_ros2_driver.

destogl avatar destogl commented on May 30, 2024

ps: I really don't like to use the Controller suffix for something which doesn't actually control anything. I believe we don't have to any more in ros2_control, so it would be great if we could avoid it. It leads to many questions ("ah, so the joint_state_controller let's me execute motions?", well, no ..).

Unfortunately, we still have it... I agree fully with you....

@livanov93

This approach only tends to make a huge list of state and command controllers like:

I think we can solve this issue by creating a few general controllers/publishers. Basically, we need only GPIOController and an extension of the joint_state_controller which enables the definition of states one wants to have published.

I think this is the most general approach and could make many people happy :)

from universal_robots_ros2_driver.

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.