#include "Behaviors/StateMachine.h"
#include "Behaviors/Demos/Navigation/PilotDemo.h"

$nodeclass Star5 : PilotDemo {

        $setupmachine{
		rundemo : StateNode =N=> starLeg1 : StarLeg =C=> starLeg2 : StarLeg =C=> starLeg3 : StarLeg  =C=> starLeg4 : StarLeg  =C=> starLeg5 : StarLeg
		}

$nodeclass StarLeg : StateNode {

        $setupmachine{
                moveSevenFifty : Forward =C=> moveRight : RightNode =C=> postMessage : PostMachineCompletion

        }

        $nodeclass Forward : PilotNode(PilotTypes::walk) : doStart {
                pilotreq.dx = 750;
        }

        $nodeclass RightNode : PilotNode(PilotTypes::walk) :doStart {
                pilotreq.da = 2.513;
        }
}


}

REGISTER_BEHAVIOR(Star5);                                    
