getPrefix
Returns the ALMemory base name for all devices and subDevices.
/** * @return Return the ALMemory base name for all device/sensors (1st string in the array) * and all devices (2nd string in the array) */ ALValue DCM::getPrefix(void)
By now, the answer is an array with strings "Device/SubDeviceList/" and "Device/DeviceList/".
Python
import naoqi from naoqi import ALProxy dcm = ALProxy("DCM","127.0.0.1",9559) print dcm.getPrefix(0)
This program returns: ['Device/SubDeviceList/', 'Device/DeviceList/']
C++
// Program running in a module. Do not forget the #include "dcmproxy.h" try { DCMProxy* dcm = new DCMProxy(pBroker); cout << dcm->getPrefix().toString() << endl; } AL_CATCH_ERR(return false;);