anyKode Marilou
ContentsIndexHome
PreviousUpNext
RobotPHX::QueryDeviceActuatingCylinder

QueryDeviceActuatingCylinder searches and returns a jack device from the PHX's devices list.

C++
DeviceActuatingCylinder * QueryDeviceActuatingCylinder(const xkode::lib::String& Name);
Parameters 
Description 
const xkode::lib::String& Name 
[in] Relative name of the device jack:
Ex: slider0/axis1/cylinder 

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

//MODA C++ native sample code

//...
ModaCPP::DeviceActuatingCylinder *pDevice=pPHX->QueryDeviceActuatingCylinder("slider0/axis/cylinder");
if(pDevice) pDevice->GoPosition(1.0f);
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!