Skip to content

robocin/ssl-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssl-client

Client base code #ssl #robocup #ssl-vision #grSim

Description

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:

RoboCup/ssl-vision

RoboCup/grSim

WarBots-RoboCup-SSL

Feel free to ask and contribute too :)

Dependencies

Tested with: Qt 5.15.1, protoc 3.6.1, Ubuntu 20.04 LTS

First Steps

  1. If you have protobuf installed, check which version you use with the command:
protoc --version
  1. If you do not, run the script on scripts folder.
  2. 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.

Usage example

  1. Open the grSim.

  2. Turn off all robots.

  3. Put them all out of bounds.

  4. Get one of the blue team robots, put it inside the field and turn on.

  5. Get the Vision multicast adress, Vision multicast port and Command listen port on grSim.

  6. In Qt Creator IDE open the project thru the ssl-Clienty.pro file.

  7. Inside main, on RoboCupSSLClient declaration, paste the Vision Multicast adress and the Vision Multicast port inside constructor.

  1. Inside main too, paste the Vision Multicast adress and the Command listen port inside setPortAndAddress if you want to send some info to grSim.

  1. Run the Qt Project!

Author: Renato Sousa

About

🎮 Client base code to receive and control ssl robots in grSim simulator.

Topics

Resources

Stars

Watchers

Forks