Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

rodrigocaus/fira-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

fira-client

Client base code #vsss #LARC #FiraSim

Description

This repository was created for the purpose of helping beginner teams. This project is capable of:

  • receive field and robot information from FiraSim
  • Send commands to robots on FiraSim

Almost every material present here can be found at:

RoboCup/ssl-vision

Robocin/FIRASim

Feel free to ask and contribute too :)

Dependencies

Tested with: protoc 3.0.0, Ubuntu 18.04 LTS.

First Steps

  1. If you have protobuf installed, check which version you use with the command:
protoc --version

Installing protobuf (recommended)

If you have a debian based OS, get protobuf through apt-get:

sudo apt-get install libprotobuf-dev protobuf-compiler

Installing protobuf (deprecated)

  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-3.0.0/src/ (example version).

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

Getting pb files

Go to folder cpp-client/pb/proto/ and run:

sh compile.sh

PS: 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 FiraSim.

  2. Get the Vision multicast adress, Vision multicast port and Command listen port on FiraSim.

  3. Go to cpp-client/main.cpp and paste the Vision Multicast port and Vision Multicast address on RoboCupSSLClient client initiator, respectively. Do the same with Command listen port and Command listen address (the same of Vision Multicast address) in VSSClient sim_client initiator.

  4. In cpp-client/ compile the code with make then run:

    ~/fira-client/cpp-client$ make
    ~/fira-client/cpp-client$ ./vss.sim
  5. To change the code and re-compile it, run make clean then make again.

Future Work

I am planning to maintain and further improve this work. You can help me by making pull requests or by opening issues when you find any problem. I am also planning to create a Python client. Feel free to help me.

Original Author: Renato Sousa/Robocin (https://github.com/robocin)

Remake Author: Rodrigo Caus/GER Unicamp (http://www.gerunicamp.com.br/)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 98.7%
  • Makefile 1.2%
  • Shell 0.1%