Skip to content

Commit

Permalink
fix broadcasting problem
Browse files Browse the repository at this point in the history
Signed-off-by: Kenji Brameld <kenjibrameld@gmail.com>
  • Loading branch information
ijnek committed Jan 20, 2024
1 parent 4d171de commit 36cf99c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2r_spl/r2r_spl/r2r_spl.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _topic_callback(self, msg):
f'Cannot send message of size {len(data)} bytes. Maximum size is 128 bytes.')
else:
# Broadcast data on team's UDP port
self._sock.sendto(data, ('', 10000 + self._team_num))
self._sock.sendto(data, ('<broadcast>', 10000 + self._team_num))

def _rcgcd_callback(self, msg):
team_found = False
Expand Down

2 comments on commit 36cf99c

@xueying4402
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same problem exists in foxy as well, and it may require an additional cherry pick, just like in the humble.

@ijnek
Copy link
Member Author

@ijnek ijnek commented on 36cf99c Apr 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the comment @xueying4402 , i have no plans on updating the foxy branch as it is a distro that has reached end of life, and i won't be able to release any bug fixes made.

Please sign in to comment.