diff --git a/src/bitbots_team_communication/bitbots_team_communication/bitbots_team_communication/bitbots_team_communication.py b/src/bitbots_team_communication/bitbots_team_communication/bitbots_team_communication/bitbots_team_communication.py index 98b8486263..0ae4aba8ba 100755 --- a/src/bitbots_team_communication/bitbots_team_communication/bitbots_team_communication/bitbots_team_communication.py +++ b/src/bitbots_team_communication/bitbots_team_communication/bitbots_team_communication/bitbots_team_communication.py @@ -261,7 +261,9 @@ def is_still_valid(time: Optional[TimeMsg]) -> bool: return (time is not None) and (now - Time.from_msg(time) < Duration(seconds=self.lifetime)) message = self.protocol_converter.convert_to_message(self, msg, is_still_valid) - self.socket_communication.send_message(message.SerializeToString()) + proto_msg = message.SerializeToString() + self.logger.debug(f"Sending msg with size {len(proto_msg)} bytes") + self.socket_communication.send_message(proto_msg) def create_empty_message(self, now: Time) -> Proto.Message: message = Proto.Message() diff --git a/src/bitbots_team_communication/bitbots_team_communication/config/team_communication_config.yaml b/src/bitbots_team_communication/bitbots_team_communication/config/team_communication_config.yaml index 8521e1d75b..b4554bc6a0 100644 --- a/src/bitbots_team_communication/bitbots_team_communication/config/team_communication_config.yaml +++ b/src/bitbots_team_communication/bitbots_team_communication/config/team_communication_config.yaml @@ -2,11 +2,11 @@ team_comm: ros__parameters: # UDP broadcast address is the highest IP in the subnet e.g. 172.20.255.255 # Sets local mode if set to loopback (127.0.0.1) - target_ip: 10.142.255.255 + target_ip: 10.109.255.255 # Only used in non local mode with specific target_ip - target_port: 3737 - receive_port: 3737 + target_port: 10006 + receive_port: 10006 # Only used in local mode on loopback # the team communication will bind to one of these ports and send to the other ports, depending on its bot_id @@ -17,7 +17,7 @@ team_comm: - 4004 # Rate of published messages in Hz - rate: 10 + rate: 2 # average walking speed in [m/s] avg_walking_speed: 0.2