Skip to content

Washhh/SeletivaRobocin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 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. 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

  • 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.

First Steps

  1. If you have protobuf installed, check which version you use with the command:
protoc --version
  1. If you do not , follow the instructions in C++ Installation - Unix.

  2. According to its version download the referent in protobuf/tags.

  3. Extract the downloaded file and go to /protobuf-2.5.0/src/ (example version).

  4. Copy the google folder and paste it into /ssl-client/ssl-Client/include/

  5. 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).

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. In Projects (left options) un-check the Shadow build!

  7. Go to /ssl-client/ssl-Client/net/robocup_ssl_client.h and paste the Vision Multicast adress and the Vision Multicast port on string net_ref_address and int port, respectively.

  8. Go to /ssl-client/ssl-Client/net/grSim_client.cpp and paste the Vision Multicast adress and the Command listen port on this->_addr.setAddress()and this->_port = quint16(), respectively.

  9. Run the Qt Project!

Author: Renato Sousa

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages