27 CPhidgetManager_open((CPhidgetManagerHandle)
_manHandle);
35 CPhidgetManager_close((CPhidgetManagerHandle)
_manHandle);
36 CPhidgetManager_delete((CPhidgetManagerHandle) _manHandle);
43 CPhidgetHandle* phidgetList;
45 ROS_INFO(
"getting attached Devices");
46 CPhidgetManager_getAttachedDevices((CPhidgetManagerHandle)
_manHandle, &phidgetList, &count);
48 std::vector<AttachedDevice> attachedDevices;
53 for (
int i = 0;
i < count;
i++) {
54 CPhidget_getDeviceName(phidgetList[
i], &name);
55 CPhidget_getSerialNumber(phidgetList[i], &serialNumber);
56 ROS_INFO(
"Found %s, with serial: %d", name, serialNumber);
59 attachedDevices.push_back(device);
63 CPhidgetManager_freeAttachedDevicesArray(phidgetList);
65 return attachedDevices;
auto getAttachedDevices() -> std::vector< AttachedDevice >
CPhidgetManagerHandle _manHandle