anyKode Marilou
ContentsIndexHome
PreviousUpNext
RobotPHX::QueryDeviceRangeFinder

QueryDeviceRangeFinders searches and return a range finder device from the list of the PHX's devices.

C++
DeviceRangeFinder * QueryDeviceRangeFinder(const xkode::lib::String& Name);
Parameters 
Description 
const xkode::lib::String& Name 
[in] Relative name of the device:
Ex: zone0/mydevice 

Pointer to the instance of the required device. The function returns NULL if the device were not found.

//MODA C++ native sample code

//...
ModaCPP::DeviceRangeFinder *pDevice=pPHX->QueryDeviceRangeFinder("zone0/mydevice");
if(pDevice) ...
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!