rj_gameplay.skill.kick

Module Contents

Classes

Kick

Atomic single-robot behavior, such as Move or PivotKick. Created and ticked by Tactics. Uses Actions to get RobotIntents.

Attributes

KICK_DOT_THRESHOLD

KICK_BALL_SPEED_THRESHOLD

rj_gameplay.skill.kick.KICK_DOT_THRESHOLD = 0.4
rj_gameplay.skill.kick.KICK_BALL_SPEED_THRESHOLD = 0.9
class rj_gameplay.skill.kick.Kick(robot: stp.rc.Robot, chip: bool, kick_speed: float, threshold: float = 0.02)

Bases: stp.skill.Skill

Atomic single-robot behavior, such as Move or PivotKick. Created and ticked by Tactics. Uses Actions to get RobotIntents.

tick(world_state: stp.rc.WorldState) rj_msgs.msg.RobotIntent

Logic for Skill goes here. RobotIntents obtained via Actions.

robot state is updated through super call to this method (i.e. super().tick(world_state))

.msg
param world_state:

Current world state.

return:

A single RobotIntent.

is_done(world_state: stp.rc.WorldState) bool

True when skill is done; False otherwise.