Skip to content

Commit

Permalink
Merge branch 'release/v0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
ibjeong committed Nov 25, 2017
2 parents 9d82f2f + 446e994 commit 69373ba
Show file tree
Hide file tree
Showing 15 changed files with 664 additions and 250 deletions.
Binary file modified controllers/soccer_robot/soccer_robot.exe
Binary file not shown.
20 changes: 13 additions & 7 deletions controllers/supervisor/constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,19 @@ namespace constants {
constexpr std::size_t KEY_LENGTH = 10;

// Game settings
constexpr std::size_t WAIT_READY = 30; // s
constexpr std::size_t WAIT_KILL = 30; // s
constexpr std::size_t WAIT_STABLE = 1; // s
constexpr std::size_t WAIT_GOAL = 3; // s
constexpr std::size_t GAME_TIME = 300; // s
constexpr std::size_t PERIOD_MS = 50; // ms
constexpr std::size_t FOUL_DURATION = 5; // s
constexpr std::size_t WAIT_READY_MS = 30 * 1000; // ms
constexpr std::size_t WAIT_KILL_MS = 30 * 1000; // ms
constexpr std::size_t WAIT_STABLE_MS = 1 * 1000; // ms
constexpr std::size_t WAIT_GOAL_MS = 3 * 1000; // ms
constexpr std::size_t WAIT_END_MS = 3 * 1000; // ms
constexpr std::size_t DEFAULT_GAME_TIME_MS = 300 * 1000; // ms
constexpr std::size_t PERIOD_MS = 50; // ms
constexpr std::size_t FOUL_DURATION_MS = 5 * 1000; // ms
constexpr double FOUL_THRESHOLD = 4.; // number of robots in penalty area
constexpr double DEADLOCK_DURATION_MS = 5000; // ms
constexpr double DEADLOCK_THRESHOLD = 0.05; // m/s

constexpr std::size_t NUM_COMMENTS = 10;

constexpr std::size_t MSG_MAX_SIZE = 90000; // bytes

Expand All @@ -98,6 +103,7 @@ namespace constants {
SCORE_RED_TEAM = 2,
SCORE_BLUE_TEAM = 3,
GAME_END = 4,
DEADLOCK = 5,
};

constexpr std::array<std::size_t, 5> CODEWORDS = {
Expand Down
Loading

0 comments on commit 69373ba

Please sign in to comment.