RoboCup-SPL / GameController3

This is the official GameController used in the RoboCup Standard Platform League
MIT License
16 stars 8 forks source link

Register the list of robots on the team. #55

Closed Hardest12345 closed 3 months ago

Hardest12345 commented 3 months ago

Screenshot 2024-06-11 122032

I have tried this game controller, but I have one confusion: how do we register the robot we own on the game controller to one of our chosen teams and not be registered on two teams? Since there are two teams, I want to conduct a test

ahasselbring commented 3 months ago

What do you mean by registering a robot?

The GameController broadcasts a message with the game state to all robots. A robot has to know its own team number (I suppose you know what that means as you have modified the configuration for a "Test" team) and player number to extract the data that are relevant for it. Each robot should periodically reply to the GameController with its team number and player number (as defined in the RoboCupGameControlReturnData struct), and that changes the color of the circle on the respective button from red to green. This means that it is up to the software on the robot how it identifies towards the GameController.

Hardest12345 commented 3 months ago

Thank you for your response, ahasselbring. I appreciate your input. I understand that it is the software on the robot that determines how it identifies with the GameController. Would you happen to have a reference code that could provide further insight into how the robot can communicate with the game controller? just for your information the robot that i used is Robotis-OP3 thank you, i'm sorry for my bad english.

ahasselbring commented 3 months ago

This GameController is only used for the Standard Platform League which plays with NAO robots. The Humanoid League uses this one: https://github.com/RoboCup-Humanoid-TC/GameController. They have an example Python client: https://github.com/RoboCup-Humanoid-TC/GameController/blob/master/protocols/python/receiver.py

Hardest12345 commented 3 months ago

Thank you very much, Ahasselbring, for providing me with the information. i appreciate your help.