Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Merge branch 'cleanup' of github.com:bit-bots/humanoid_league_misc in…
Browse files Browse the repository at this point in the history
…to cleanup
  • Loading branch information
Flova committed Nov 12, 2023
2 parents cb481a9 + e0eb742 commit 872ed6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def __init__(self, own_team_color: TeamColor):

self.proto_to_team_data_team_mapping = {
Proto.Team.UNKNOWN_TEAM: RobotRelative.ROBOT_UNDEFINED,
Proto.Team.BLUE: RobotRelative.ROBOT_CYAN,
Proto.Team.RED: RobotRelative.ROBOT_MAGENTA
Proto.Team.BLUE: RobotRelative.ROBOT_BLUE,
Proto.Team.RED: RobotRelative.ROBOT_RED
}
self.state_to_proto_team_mapping = {
RobotAttributes.TEAM_OWN: Proto.Team.RED if own_team_color == TeamColor.RED else Proto.Team.BLUE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def test_convert_robots(snapshot, message_with_other_robots, team_data_with_head
team_data = convert_from_message(message_with_other_robots, team_data_with_header)

assert team_data.robots.header == team_data_with_header.header
assert team_data.robots.robots[0].type == RobotRelative.ROBOT_CYAN
assert team_data.robots.robots[1].type == RobotRelative.ROBOT_MAGENTA
assert team_data.robots.robots[0].type == RobotRelative.ROBOT_BLUE
assert team_data.robots.robots[1].type == RobotRelative.ROBOT_RED

assert str(team_data.robots) == snapshot

Expand Down

0 comments on commit 872ed6b

Please sign in to comment.