Client base code #ssl #robocup #ssl-vision #grSim
This repository was created for the purpose of helping beginner teams and include the files in another Qt project. This project is capable of:
- receive field and robot information from ssl-vision
- receive field and robot information from grSim
- Send commands to robots on grSim
Almost every material present here can be found at:
Feel free to ask and contribute too :)
Tested with: Qt 5.15.1, protoc 3.6.1, Ubuntu 20.04 LTS
- If you have protobuf installed, check which version you use with the command:
protoc --version- If you do not, run the script on
scriptsfolder. - Go to folder
/include/ssl-client/protobuf-files/pb/protoand run:
sh compile.sh- You can intentionally run the project without running the script above. The expected behavior is that the first build fails, as in the image below:
- Then go to
Build->Clean All Projects for All Configurationsand rebuild after this step; - After that, the code should run normally. In the first build the software will identify the absence of the files generated by the
compile.shscript and will generate the files automatically. Unfortunately, this process is done after the first build, so it is necessary to clean and rebuild the project.
-
Open the grSim.
-
Turn off all robots.
-
Put them all out of bounds.
-
Get one of the blue team robots, put it inside the field and turn on.
-
Get the Vision multicast adress, Vision multicast port and Command listen port on grSim.
-
In Qt Creator IDE open the project thru the
ssl-Clienty.profile. -
Inside main, on
RoboCupSSLClientdeclaration, paste the Vision Multicast adress and the Vision Multicast port inside constructor.
- Inside main too, paste the Vision Multicast adress and the Command listen port inside
setPortAndAddressif you want to send some info to grSim.
- Run the Qt Project!