Client base code #ssl #robocup #ssl-vision #grSim
This repository was created for the purpose of helping beginner teams. 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 :)
- Qt Creator (remember to go in project and disable "shadow build")
- protobuf
Tested with: Qt 5.8.0, protoc 2.5.0, protoc 2.6.1, protoc 3.x, Ubuntu 14.04.5 LTS.
- If you have protobuf installed, check which version you use with the command:
protoc --version
-
If you do not , follow the instructions in C++ Installation - Unix.
-
According to its version download the referent in protobuf/tags.
-
Extract the downloaded file and go to
/protobuf-2.5.0/src/
(example version). -
Copy the google folder and paste it into
/ssl-client/ssl-Client/include/
-
Go to folder
/ssl-client/ssl-Client/pb/proto/
and run:
sh compile.sh
Obs: when building the program, if something referring to google/protobuf/stubs/common.h
has any errors, it will probably be an incompatibility version problem with protobuf (include/google
).
-
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. In Projects (left options) un-check theShadow build
! -
Go to
/ssl-client/ssl-Client/net/robocup_ssl_client.h
and paste the Vision Multicast adress and the Vision Multicast port onstring net_ref_address
andint port
, respectively. -
Go to
/ssl-client/ssl-Client/net/grSim_client.cpp
and paste the Vision Multicast adress and the Command listen port onthis->_addr.setAddress()
andthis->_port = quint16()
, respectively. -
Run the Qt Project!