sonelu / roboglia

Robotics framework
GNU General Public License v3.0
0 stars 1 forks source link

[FEATURE REQUEST] Provide "INCLUDE" support for YAML device definitions #85

Closed sonelu closed 4 years ago

sonelu commented 4 years ago

Is your feature request related to a problem? Please describe. Many Dynamixel devices share register definitions and it would be helpful if it would be possible to define "include" files that can be reused across devices.

Describe the solution you'd like Common elements should be defined in normal YAML files. An "include" key should be used in a device definition to list the files to be reused by a device. The included files should be provided in a list and they have to be located in the same directory as the main device definition file to simplify things. The files can overlap in definition. In this case the latest definitions are used. The device definition can also overwrite the information from the include files or add new elements.

Describe alternatives you've considered You have to maintain all files with redundant information and if a change is needed you need to perform it in all files.

Additional context