virtual void setup() {
#statemachine

launch: StateNode =N=> {red1, barklow1}

red1: LedNode [getMC()->flash(RobotInfo::RedLEDMask, 1500, 1000);] =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>blue2

red1 =C=> yellow1

yellow1: LedNode [getMC()->flash(RobotInfo::YellowLEDMask, 1500, 1000);] =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>red2

yellow1 =C=> green1

green1: LedNode [getMC()->flash(RobotInfo::GreenLEDMask, 1500, 1000);] =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>yellow2

green1 =C=> blue1

blue1: LedNode [getMC()->flash(RobotInfo::BlueLEDMask, 1500, 1000);] =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>green2

blue1 =C=> red1

barklow1: SoundNode($, "barklow.wav") =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>barkhigh2

barklow1 =T(2000)=> barkmed1

barkmed1: SoundNode($, "barkmed.wav") =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>barklow2

barkmed1 =T(2000)=> barkhigh1

barkhigh1: SoundNode($, "barkhigh.wav") =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>barkmed2

barkhigh1 =T(2000)=> barklow1

red2: LedNode [getMC()->flash(RobotInfo::RedLEDMask, 1500, 1000);] =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>yellow1

red2 =C=> blue2

yellow2: LedNode [getMC()->flash(RobotInfo::YellowLEDMask, 1500, 1000);] =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>green1

yellow2 =C=> red2

green2: LedNode [getMC()->flash(RobotInfo::GreenLEDMask, 1500, 1000);] =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>blue1

green2 =C=> yellow2

blue2: LedNode [getMC()->flash(RobotInfo::BlueLEDMask, 1500, 1000);] =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>red1

blue2 =C=> green2

barklow2: SoundNode($, "barklow.wav") =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>barkmed1

barklow2 =T(2000)=> barkhigh2

barkmed2: SoundNode($, "barkmed.wav") =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>barkhigh1

barkmed2 =T(2000)=> barklow2

barkhigh2: SoundNode($, "barkhigh.wav") =E(buttonEGID, RobotInfo::GreenButOffset, activateETID)=>barklow1

barkhigh2 =T(2000)=> barkmed2

#endstatemachine

startnode = launch;
}