fork download
  1. AL::ALMotionProxy *g_pMotion;
  2.  
  3. int main( int argc, char *argv[] )
  4. {
  5. g_pMotion = new AL::ALMotionProxy("127.0.0.1", 9559);
  6.  
  7. int P=2;
  8.  
  9. do{
  10. walk();
  11. }while(P==2);
  12.  
  13. delete g_pMotion;
  14.  
  15. return 0;
  16. }
  17.  
  18. void walk(void)
  19. {
  20. AL::ALMotionProxy &motion = *g_pMotion;
  21. double fractionMaxSpeed=0.2;
  22.  
  23. AL::ALValue names = AL::ALValue::array("LHipPitch");
  24.  
  25. AL::ALValue angles = AL::ALValue::array(-0.4);
  26.  
  27. motion.setAngles(names, angles, fractionMaxSpeed);
  28.  
  29. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty