Client base code #vsss #LARC #FiraSim
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:
Feel free to ask and contribute too :)
Tested with: protoc 3.0.0, Ubuntu 18.04 LTS.
- If you have protobuf installed, check which version you use with the command:
protoc --version
If you have a debian based OS, get protobuf through apt-get:
sudo apt-get install libprotobuf-dev protobuf-compiler
-
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-3.0.0/src/
(example version). -
Copy the google folder and paste it into
/cpp-client/include/
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
).
-
Get the Vision multicast adress, Vision multicast port and Command listen port on FiraSim.
-
Go to
cpp-client/main.cpp
and paste the Vision Multicast port and Vision Multicast address onRoboCupSSLClient client
initiator, respectively. Do the same with Command listen port and Command listen address (the same of Vision Multicast address) inVSSClient sim_client
initiator. -
In
cpp-client/
compile the code withmake
then run:~/fira-client/cpp-client$ make ~/fira-client/cpp-client$ ./vss.sim
-
To change the code and re-compile it, run
make clean
thenmake
again.
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.