Coder Social home page Coder Social logo

boat's Introduction

Build Status

This repository contains the code meant to run on the boat for the WPI Sailbot in the 2016-2017 school year.

Structure

The exact locations of things is a bit subject to change right now, but:

  • The top level is reserved for build file, READMEs, etc.
  • ipc/ contains the code for, well, IPC.
  • util/ contains what is, right now, any other infrastructure-related code

Building and Running the Code

I have been using Bazel for the build system. If you install bazel on your system, you should be able to run bazel build //... to build all of the code.

Unfortunately, I have not yet integrated all of the dependencies with bazel and there are almost certainly prerequisites missing beyond that which I list here:

  • A C++ compiler that bazel will recognize/locate (I assume gcc and clang both work)
  • Probably some other things I'm missing

In order to compile for the BBB, use bazel build --cpu=bbb //some/target:here

Tests and Examples

There are a few tests/examples that I have throughout the code:

  • //ipc:queue_test needs system resources in order to run, and so must be run manually, rather than through bazel test.
  • //util:ping, //util:pong, and //util:logger_main can be run simultaneously to test out the framework and see how it works. The logs can then be read back using the example //util:log_reader_main

TODO

  • Clean up build process so it has fewer prerequisites and is generally cleaner
    • Also, the gtest download/build should be cleaned up
  • Documentaion (always)
  • More unit testing
  • Validate system more thoroughly
  • Get started on hardware-specific libraries
  • Set up cross-compilation for BBB (Mostly done)
  • Separate out ping, pong, and log examples into separate location
  • Set up infrastructure for log replay
    • Actually replaying the logs
  • Take a closer look at Boost's implementation of queues

Notes

  • We are using proto2, not proto3, because I (James) observed some oddities where ParseFromArray would Clear the message and force re-allocation of internal sub-messages. Still not 100% sure why proto2 is working better than 3.

boat's People

Contributors

jkuszmaul avatar

Watchers

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