example.cpp
Go to the documentation of this file.
00001 #include <stdio.h>
00002 #include <phidget_ik/phidget_ik.h>
00003 
00004 int main(void)
00005 {
00006   PhidgetIK phidget_ik;
00007   
00008   phidget_ik.init(-1);
00009   phidget_ik.waitForAttachment(1000);
00010   
00011   int inputs = phidget_ik.getInputCount();
00012   if (phidget_ik.getLastError())
00013   {
00014     std::cerr << "Error initializing PhidgetInterfaceKit: " << phidget_ik.getErrorDescription(phidget_ik.getLastError()) << std::endl;
00015     return 1;
00016   }
00017   
00018   for (int ii=0; ii != inputs; ii++)
00019     std::cout << "Input " << ii << " has state " << phidget_ik.getInputState(ii) << std::endl;
00020 
00021   return 0;
00022 }


phidget_ik
Author(s): Wouter Caarls
autogenerated on Sun Jan 5 2014 11:06:43