Closed Doomerdinger closed 1 year ago
As far as I can tell, we never call PhidgetManager_setOnErrorHandler
(in point of fact, we don't call the PhidgetManager_
set of APIs at all).
Note that this is the ROS wrapper for the libphidgets
library; we don't do development on the libphidgets
library itself. I think you'd have to contact support via https://www.phidgets.com/ to file a bug report with them.
Yeah, I just was not sure if the way the libphidget22
package configures/builds the library was causing this. It does not seem like it but I wanted to double check since my knownledge of this is fairly slim.
Assuming that is not the case I will close this and take it up with phidgets.
I'll assume the issue lies with the vendor code.
It appears that the function
PhidgetManager_setOnErrorHandler
is not present in the library file, though it is present in the phidgets header. If it is ever used, you end up with an undefined reference error at compile time.Two similar functions (
PhidgetManager_setOnAttachHandler
andPhidgetManager_setOnDetachHandler
) seem to work fine.In older versions of this library (melodic I believe) the function signatures were slightly different (
CPhidgetManager_set_OnAttach_Handler
for example) and all three seemed to work.In the source code of the phidget22 library downloaded from phidget's website I see the function
PhidgetManager_setOnErrorHandler
present in thephidget22.h
andmanager.h
headers, alongside the other two sister functions mentioned above. Similarly, all are defined in themanager.c
file. ThePhidgetManager_setOnAttachHandler
function does seem to be absent from thesrc/plat/linux/symversion.def
file where the other two are present, but I do not know what this indicates.I'm not overly familiar with this codebase, I apologize if this is an intentional removal or if that function shouldn't really be used.