anyKode Marilou
ContentsIndexHome
PreviousUpNext
RobotPHX::QueryDeviceSurfaceMotion

QueryDeviceSurfaceMotion searches and returns a Conveyor/Surface Motion device from the PHX's devices list.

C++
DeviceSurfaceMotion * QueryDeviceSurfaceMotion(xkode::lib::String Name);
Parameters 
Description 
xkode::lib::String Name 
[in] Relative name of the device:
Ex: hinge0/axis1/servo1 

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

//MODA C++ native sample code

//...
ModaCPP::DeviceSurfaceMotion *pSurface1=pConveyor->QueryDeviceSurfaceMotion("conveyor1/axis/s");
if(pSurface1) pSurface1->SetVelocity(1.0f);
Documentation v4.7 (17/05/2011), Copyright (c) 2011 anyKode. All rights reserved.
What do you think about this topic? Send feedback!