Giter Site home page Giter Site logo

ekoziol / openag_brain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openagriculturefoundation/openag_brain

0.0 1.0 0.0 424 KB

ROS package for controlling an OpenAg food computer

License: GNU General Public License v3.0

Shell 0.74% Python 99.26%

openag_brain's Introduction

OpenAg Brain

This repository hold code that runs on the main computing board of an OpenAg food computer (usually a Raspberry Pi). It runs on top on ROS and uses CouchDB for data storage.

Installation (Raspberry Pi)

There is a pre-built Docker image for running this codebase on ARM machines. Most people should use this image. To set it up, follow the instructions in this repo.

If you plan to modify the code in this repository, it might make more sense to install the software directly on your machine instead of running everything in a Docker container. For Raspberry Pi, this can be done by following the instructions in this repo.

Installation (Other Machines)

If neither the Docker image nor the install script work for you, for whatever reason, you will have to install each component of the system yourself. These instructions describe how to do so.

First, install ROS Indigo on your machine. There are installation instructions here for doing so. For Raspberry Pi, there are instructions here instead.

Next, install an instance of CouchDB on your machine. There are installation instructions here for doing so. In newer version of Ubuntu (13.10 and up), this can be done via sudo apt-get install couchdb.

Create a catkin workspace as described here and install the code from this repository in the workspace.

cd ~/catkin_ws/src
git clone https://github.com/OpenAgInitiative/openag_brain.git -b ros
cd ..
catkin_make
catkin_make install
rosdep install -i openag_brain

To run any of the openag commands, you must first activate the catkin workspace as follows:

source ~/catkin_ws/devel/setup.bash

Finally, you must install platformio. platformio and rosserial use different versions of pyseial, so installing them both on the same machine will break things. Instead, platformio should be installed in a python virtual environment. There is a script in openag_brain that will do this for you:

rosrun openag_brain install_pio

Running

With everything installed (not through Docker) and with the catkin workspace active, the project can be run as follows:

rosrun openag_brain main

openag_brain's People

Contributors

leonchambers avatar gordonbrander avatar edcafenet avatar yaromins avatar

Watchers

 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.