Skip to content

Commit

Permalink
Rename main class
Browse files Browse the repository at this point in the history
  • Loading branch information
Flova authored and jaagut committed Feb 4, 2024
1 parent 1d18b87 commit 2b48470
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 @@ -27,7 +27,7 @@
from bitbots_team_communication.converter.robocup_protocol_converter import RobocupProtocolConverter, TeamColor


class HumanoidLeagueTeamCommunication:
class TeamCommunication:
def __init__(self):
self._package_path = get_package_share_directory("bitbots_team_communication")
self.node = Node("team_comm", automatically_declare_parameters_from_overrides=True)
Expand Down Expand Up @@ -240,7 +240,7 @@ def get_current_time(self) -> Time:

def main():
rclpy.init(args=None)
HumanoidLeagueTeamCommunication()
TeamCommunication()


if __name__ == "__main__":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

import bitbots_team_communication.robocup_extension_pb2 as Proto # noqa: N812
from bitbots_msgs.msg import Strategy
from bitbots_team_communication.bitbots_team_communication import HumanoidLeagueTeamCommunication
from bitbots_team_communication.bitbots_team_communication import TeamCommunication
from bitbots_team_communication.converter.robocup_protocol_converter import RobocupProtocolConverter, TeamColor

own_team_id = 1
Expand Down Expand Up @@ -305,7 +305,7 @@ def state_with_gamestate(state):

@pytest.fixture
def state():
state = Mock(HumanoidLeagueTeamCommunication)
state = Mock(TeamCommunication)
state.player_id = 2
state.team_id = own_team_id
state.gamestate = None
Expand Down

0 comments on commit 2b48470

Please sign in to comment.