Repository navigation
Documentation for ros2_control - #36
Conversation
bmagyar
left a comment
There was a problem hiding this comment.
Very nice in general, I've added a few things to consider
| #. Implement `ActuatorInterface`_, `SensorInterface`_ or `SystemInterface`_ classes as follows: | ||
|
|
||
| #. In the constructor, initialize all variables needed for communication with your hardware or define the default one. | ||
| #. In the configure function, read all the parameters your hardware needs from the parsed URDF snippet (i.e., from the `HardwareInfo`_ structure). Here you can cross-check if all joints and interfaces in URDF have allowed values or a combination of values. |
There was a problem hiding this comment.
these components can do their own parsing and are not limited to HardwareInfo
There was a problem hiding this comment.
Is it so? I am not sure what you mean. We provide all the data in the HardwareInfo structure. so you are actually not parsing, but iterating through the parsed structure.
There was a problem hiding this comment.
You are right, I didn't remember precisely. This however is actually a good opportunity to lay out an example URDF that has a couple of custom parameters and we could show how these are appearing for a SystemInterface implementation. Perhaps a next ticket? I'd be happy to merge this as-is
|
Thanks very much for this! |
No description provided.