This header file defines types and function prototypes for a hierarchical state machine for modeling defense behaviors. It defines an enumerated type for the different defense states including driving with an offset, looking for the opponent, driving toward the opponent, and taking a defensive action. Prototypes are provided for functions to run and start the state machine, and to query the current state.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
75 views1 page
Defensesm
This header file defines types and function prototypes for a hierarchical state machine for modeling defense behaviors. It defines an enumerated type for the different defense states including driving with an offset, looking for the opponent, driving toward the opponent, and taking a defensive action. Prototypes are provided for functions to run and start the state machine, and to query the current state.
Template header file for Hierarchical Sate Machines AKA StateCharts
02/08/12 adjsutments for use with the Events and Services Framework Gen2 3/17/09 Fixed prototpyes to use Event_t ****************************************************************************/
#ifndef DefenseSM_H #define DefenseSM_H
// typedefs for the states
// State definitions for use with the query function typedef enum { DefDrive4Offset, Look4Opp, Drive2Opp, DefAct } DefenseState_t ;