## page was copied from smach/Tutorials/Simple State Machine
## For instruction on writing tutorials
## http://www.ros.org/wiki/WritingTutorials
####################################
##FILL ME IN
####################################
## for a custom note with links:
## note =
## for the canned note of "This tutorial assumes that you have completed the previous tutorials:" just add the links 
## note.0= 
## descriptive title for the tutorial
## title = Simple State Machine
## multi-line description to be displayed in search 
## description = This tutorial shows how to put together a simple state machine with two states.
## the next tutorial description (optional)
## next =
## links to next tutorial (optional)
## next.0.link=[[smach/Tutorials/User Data Passing|User Data Passing]]
## next.1.link=
## what level user is this tutorial for 
## level= BeginnerCategory
## keywords =
####################################

<<IncludeCSTemplate(TutorialCSHeaderTemplate)>>


All of the following examples can be run without modification. They can be found in the [[smach_tutorials]] package in the `examples` directory. The comments at the head of each file show roughly what the output from running the script should look like.

{{attachment:state_machine2.png||width="300"}}


{{{#!wiki 
<<GetCode(https://raw.githubusercontent.com/eacousineau/executive_smach_tutorials/hydro-devel/smach_tutorials/examples/state_machine2.py,#!python)>>
}}}


## AUTOGENERATED DO NOT DELETE 
## TutorialCategory
## FILL IN THE STACK TUTORIAL CATEGORY HERE
## ExampleSMACHCategory