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
scripts
folder. - Go to folder
/include/ssl-client/protobuf-files/pb/proto
and 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 Configurations
and 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.sh
script 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.pro
file. -
Inside main, on
RoboCupSSLClient
declaration, 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
setPortAndAddress
if you want to send some info to grSim.
- Run the Qt Project!