GT RoboCup SSL
Soccer software, robot firmware
gameplay.tactics.positions.coach.Coach Class Reference

Motivates, encourages, and directs the team. More...

Classes

class  State
 

Public Member Functions

def __init__ (self)
 
def our_score_increased (self)
 
def their_score_increased (self)
 
def on_enter_running (self)
 
def on_enter_watching (self)
 
def on_exit_running (self)
 
def execute_watching (self)
 
def on_enter_celebrating (self)
 
def execute_celebrating (self)
 
def on_enter_motivating (self)
 
def on_enter_strategizing (self)
 
def execute_strategizing (self)
 
def on_exit_strategizing (self)
 
def role_requirements (self)
 
- Public Member Functions inherited from gameplay.single_robot_composite_behavior.SingleRobotCompositeBehavior
def __init__
 Constructor. More...
 
def autorestart (self)
 
def autorestart
 
def add_subbehavior
 we over-ride this to enforce the rule that there can't be more than one subbehavior
 
def has_subbehaviors (self)
 
def role_requirements (self)
 
def assign_roles (self, assignments)
 
def __str__ (self)
 
- Public Member Functions inherited from gameplay.single_robot_behavior.SingleRobotBehavior
def __init__ (self, continuous)
 
def execute_running (self)
 
def role_requirements (self)
 
def assign_roles
 
def __str__ (self)
 
- Public Member Functions inherited from gameplay.behavior.Behavior
def __init__
 
def add_state (self, state, parent_state=None)
 
def is_done_running (self)
 
def terminate (self)
 Transitions the Behavior into a terminal state (either completed or cancelled)
 
def behavior_state (self)
 returns a state in Behavior.State that represents what the behaviors is doing use this instead of the property if you want to avoid dealing with custom subclass substates
 
def is_continuous (self)
 The Behavior's termination behavior noncontinuous: a behavior that accomplishes a specific task, then completes (example: shooting at the goal) continuous: a behavior that continually runs until told to stop (example: zone defense)
 
def __str__ (self)
 
def role_requirements (self)
 Returns a tree of RoleRequirements keyed by subbehavior reference name This is used by the dynamic role assignment system to intelligently select which robot will run which behavior.
 
def assign_roles (self, assignments)
 assignments is a tree of (RoleRequirements, OurRobot) tuples Same tree structure as the role_requirements() return value, but tuples instead of RoleRequirements as leaf nodes
 
- Public Member Functions inherited from gameplay.fsm.StateMachine
def __init__ (self, start_state)
 
def start_state (self)
 
def restart (self)
 Resets the FSM back into the start state.
 
def add_state (self, state, parent_state=None)
 Registers a new state (which can optionally be a substate of an existing state)
 
def spin (self)
 Runs the FSM checks transition conditions for all edges leading away from the current state if one evaluates to true, we transition to it if more than one evaluates to true, we throw a RuntimeError.
 
def add_transition
 
def transition (self, new_state)
 
def is_in_state (self, state)
 
def state_is_substate (self, state, possible_parent)
 
def corresponding_ancestor_state (self, ancestors)
 
def ancestors_of_state (self, state)
 
def as_graphviz (self)
 
def write_diagram_png
 
def state (self)
 
- Public Member Functions inherited from gameplay.composite_behavior.CompositeBehavior
def __init__
 
def add_subbehavior
 
def remove_subbehavior
 
def has_subbehavior_with_name
 
def has_subbehaviors (self)
 
def subbehavior_with_name
 
def subbehaviors_by_name (self)
 
def remove_all_subbehaviors (self)
 
def all_subbehaviors (self)
 Returns a list of all subbehaviors.
 
def all_subbehaviors_completed (self)
 
def spin (self)
 Override StateMachine.spin() so we can call spin() on subbehaviors.
 
def handle_subbehavior_exception (self, name, exception)
 Override point for exception handling this is called whenever a subbehavior throws an exception during spin() subclasses of CompositeBehavior can override this to perform custom actions, such as removing the offending subbehavior the default implementation logs the exception and re-raises it.
 
def role_requirements (self)
 returns a tree of role_requirements
 
def assign_roles (self, assignments)
 
def __str__ (self)
 

Static Public Member Functions

def fortune_wrapper ()
 Returns a fortune. More...
 

Public Attributes

 spin_angle
 
- Public Attributes inherited from gameplay.single_robot_composite_behavior.SingleRobotCompositeBehavior
 autorestart
 
 robot
 
 robot_shell_id
 
- Public Attributes inherited from gameplay.single_robot_behavior.SingleRobotBehavior
 robot
 

Static Public Attributes

int MaxSpinAngle = 360
 
int SpinPerTick = 1
 
int OurScore = 0
 
int TheirScore = 0
 
list STRATEGIZING_IDEAS
 

Detailed Description

Motivates, encourages, and directs the team.

+ Inheritance diagram for gameplay.tactics.positions.coach.Coach:
+ Collaboration diagram for gameplay.tactics.positions.coach.Coach:

Member Function Documentation

◆ fortune_wrapper()

def gameplay.tactics.positions.coach.Coach.fortune_wrapper ( )
static

Returns a fortune.

Member Data Documentation

◆ STRATEGIZING_IDEAS

list gameplay.tactics.positions.coach.Coach.STRATEGIZING_IDEAS
static
Initial value:
= [
"*incoherent mumbling*", "They'll never see it coming!",
"*wild robot appendage gestures*",
"And that's when we pull out the soldering irons",
"*coach violently hawks a loogie*", "Sweep the Leg",
"Is it necesarry for me to drink my own urine? No, but I do it anyway because its sterile and I like the taste",
"There's nothing in the rules about golf clubs",
"*coach points violently at the ref*",
"*coach slyly passes the player an extra battery*",
"Yes, the soup last night was delicious",
"Time for another rule in our name...",
"THIS... STATEMENT... IS... FALSE"
]

The documentation for this class was generated from the following file: