anyKode Marilou
ContentsIndexHome
PreviousUpNext
RobotPHX::QueryDeviceSurfaceMotion

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

C++
DeviceSurfaceMotion * QueryDeviceSurfaceMotion(const xkode::lib::String& Name);
Parameters 
Description 
const 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 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!