Forward State Controller#2215
Conversation
saikishor
left a comment
There was a problem hiding this comment.
I personally don't see the need for this at all.
Can you please give some context on why and when this is needed?. Thank you
|
I wanted to showcase controlling ethercat semaphore lights from OPCUA server. |
I personally don't think it makes sense here. Let's see what other maintainers say |
|
I changed the test YAML in the hope that it would better represent the use case. test_forward_state_controller:
ros__parameters:
state_interfaces:
- opcua_stack_green/status
forward_state:
opcua_stack_green/status:
to_command: ["ethercat_stack_green/status"]If that reading is correct, this boils down to make a single controller to deal with state from hardware A + commands on hardware B. This pattern may be rare for upstream to support. With such controller, the mapping is mostly in configuration, so you don’t have to teach each driver about the other in code. |
bmagyar
left a comment
There was a problem hiding this comment.
Thank you @Nibanovic . Can we please get some documentation for this controller? In a similar fashion as with other controllers in this repo, also linked to the main documentation page collecting them so we can serve said docs from control.ros.org directly. Please make sure to add the example gathered in the discussion here. No shame in using AI for this but please make a note of this in the opening post.
Forward State Controller
Takes a list of state interfaces, and forwards them to command interfaces.
A single state interface can be forwarded to multiple command interfaces.
Seems like a natural addition alongside "forward command controller", so I'm opening a PR.
In structure, it is very similar to forward command controller
Example config: