Open bmagyar opened 4 years ago
Hi Bence,
I agree with you and I tried to do this in the example concept ros-controls/ros2_control#80
The main issue for me was how properly assign handles between virtual components, i.e. Actuators and Sensors, and the component which implements a protocol for specific hardware. The problem is the following:
DynamicJointState:
joint_names: ["joint1"]
interface_values: [
interface_names: ["position", "velocity", "acceleration"]
values: [...]
]
What do you think about that?
** real world example would be a robot where we can control position and read position, velocity and acceleration data
Idea: Still use handles to avoid searching the dictionary structure. Pass collection of requested handles (with pointers to the right doubles in the structure) to controllers. Avoid interface-based type on handles but serve them as separate collections?