Thunderbots Project
Loading...
Searching...
No Matches
transition_conditions.h
1
#pragma once
2
3
#include "software/world/world.h"
4
5
// Transition conditions are conditions to check before transitioning between different
6
// gameplay behaviour
7
19
bool
robotReachedDestination(
const
Robot
& robot,
const
Point
& destination,
20
const
Angle
& final_orientation,
21
double
DISTANCE_THRESHOLD = 0.05,
22
const
Angle
& ANGLE_THRESHOLD =
Angle::fromDegrees
(2));
23
32
bool
robotStopped(
const
Robot
& robot,
double
SPEED_THRESHOLD = 0.05);
33
41
bool
comparePoints(
const
Point
& pt1,
const
Point
& pt2,
double
DISTANCE_THRESHOLD = 0.02);
42
50
bool
compareAngles(
const
Angle
& angle1,
const
Angle
& angle2,
51
const
Angle
& ANGLE_THRESHOLD =
Angle::fromDegrees
(2));
52
62
bool
isRobotReadyToChick(
const
Robot
& robot,
const
Point
& ball_position,
63
const
Angle
& chick_direction,
64
const
Angle
& ANGLE_THRESHOLD =
Angle::fromDegrees
(5));
Angle
Definition
angle.h:15
Angle::fromDegrees
static constexpr Angle fromDegrees(double deg)
Definition
angle.h:408
Point
Definition
point.h:14
Robot
Definition
robot.h:16
src
software
ai
hl
stp
tactic
transition_conditions.h
Generated by
1.9.8