AL::ALMotionProxy *g_pMotion;

int main( int argc, char *argv[] )
{
    g_pMotion = new AL::ALMotionProxy("127.0.0.1", 9559);
    
    int P=2;
 
    do{
        walk();
    }while(P==2);

    delete g_pMotion;

    return 0;
}
 
void walk(void)
{
        AL::ALMotionProxy &motion = *g_pMotion;
        double fractionMaxSpeed=0.2;
 
        AL::ALValue names = AL::ALValue::array("LHipPitch"); 
 
        AL::ALValue angles  = AL::ALValue::array(-0.4);
                                                                
        motion.setAngles(names, angles, fractionMaxSpeed);
 
}