fork download
  1. AL::ALMotionProxy motion("127.0.0.1", 9559);
  2. int main( int argc, char *argv[] )
  3. {
  4.  
  5.  
  6. int P=2;
  7.  
  8. do
  9. {
  10. walk();
  11.  
  12. }while(P==2);
  13.  
  14. }
  15.  
  16. void walk(void)
  17. {
  18.  
  19. double fractionMaxSpeed=0.2;
  20.  
  21. AL::ALValue names = AL::ALValue::array("LHipPitch");
  22.  
  23. AL::ALValue angles = AL::ALValue::array(-0.4);
  24.  
  25. motion.setAngles(names, angles, fractionMaxSpeed);
  26.  
  27. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: ‘AL’ does not name a type
prog.cpp: In function ‘int main(int, char**)’:
prog.cpp:10:18: error: ‘walk’ was not declared in this scope
prog.cpp: In function ‘void walk()’:
prog.cpp:21:9: error: ‘AL’ has not been declared
prog.cpp:21:21: error: expected ‘;’ before ‘names’
prog.cpp:23:9: error: ‘AL’ has not been declared
prog.cpp:23:21: error: expected ‘;’ before ‘angles’
prog.cpp:25:9: error: ‘motion’ was not declared in this scope
prog.cpp:25:26: error: ‘names’ was not declared in this scope
prog.cpp:25:33: error: ‘angles’ was not declared in this scope
stdout
Standard output is empty