yarp
yarp copied to clipboard
annoying error message: `device XXX does not derive from IDeviceDriverParams`
Describe the bug
controlboardremapper device dose not start via yarprobotinterface due to this error:
"Device foo does not derive from IDeviceDriverParams."
That is triggered by these lines of code:
- https://github.com/robotology/yarp/blob/285f6317ec29fe960b18524c7a91d5d685073ef4/src/libYARP_robotinterface/src/yarp/robotinterface/Robot.cpp#L239-L242
In fact the device does not inherit by that interface:
- https://github.com/robotology/yarp/blob/285f6317ec29fe960b18524c7a91d5d685073ef4/src/devices/controlBoardRemapper/ControlBoardRemapper.h#L69-L92
To Reproduce
Run controlboardremapper device via yarprobotinterface
Expected behavior
A clear and concise description of what you expected to happen.
controlboardremapper device works if launched via yarprobotinterface
Screenshots
If applicable, add screenshots to help explain your problem.
Configuration (please complete the following information):
- OS: Ubuntu 24.04
- yarp version: 3.12
- compiler: n/a
Additional context Add any other context about the problem here.
cc @MSECode @traversaro @randaz81