(!) Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags.

Nesting State Machines

Description: This tutorial gives an example of nesting a state machine in another state machine, creating a hierarchical state machine.

Tutorial Level: BEGINNER

Next Tutorial: Concurrent States

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.

state_machine_nested2.png

Could not fetch external code from 'https://code.ros.org/svn/ros-pkg/stacks/executive_smach_tutorials/trunk/smach_tutorials/examples/state_machine_nesting2.py':

Wiki: mysmach/Tutorials/Nesting State Machines (last edited 2015-01-31 08:33:55 by hongming wang)