Code Monkey home page Code Monkey logo

robocupprotocol's Introduction

RobocupProtocol

Protobuf message protocol for the Robocup Humanoid league.

This repository contains example protobuf messages and some code examples for encoding/decoding the different messages.

Files

RobocupProtocol/
├── CMakeLists.txt                   # CMake project file
├── decode_base.cpp                  # Decode using the official message
├── decode_extended.cpp              # Decode using the extended message
├── encode_base.cpp                  # Encode using the official message
├── encode_extended.cpp              # Encode using the extended message
├── run_all.sh                       # Script to build code and then run all permutations
├── robocup.proto                    # The official message
├── robocup_extension.proto          # The extended message
└── utils.hpp                        # Utility functions for interpreting message contents

Compiling

mkdir build
cd build
cmake ..
make

Running

There are four binaries that are built encode_base, encode_extended, decode_base, and decode_extended.

encode_base will create a message using the official message protocol and save it to a file named base_message.pb.

encode_extended will create a message using the extended message protocol and save it to a file named extended_message.pb.

decode_base will take a file as an argument and will decode that file using the official message protocol and print it to the screen in a json format.

decode_extended will take a file as an argument and will decode that file using the extended message protocol and print it to the screen in a json format.

Alternatively, if you execute the run_all.sh script, it will compile the code and run all permutations of encoding and decoding.

robocupprotocol's People

Contributors

bidski avatar trenthouliston avatar mattamos avatar

Stargazers

Jan Gutsche avatar  avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.