Giter Club home page Giter Club logo

robertalab-ev3dev's Introduction

intro

A connector to use a LEGO Mindstorm ev3 running the ev3dev firmware (http://www.ev3dev.org) from the Open Roberta lab (http://lab.open-roberta.org). This is now included by default with ev3dev images (Thanks @dlech), but it is prevented from running by default, so you do have to enable it once:

sudo systemctl unmask openrobertalab.service
sudo systemctl start openrobertalab.service

After running the commands above, it will start automatically after a reboot. You can turn it back off by running:

sudo systemctl stop openrobertalab.service
sudo systemctl mask openrobertalab.service

If the openrobertalab package is installed and the service is running, the Open Roberta Lab menu item in brickman will allow you to connect to an Open Roberta server. This is how the menu will look like:

Main Menu.

Once you selected the Open Roberta Lab menu item you'll get to this screen:

Open Roberta Lab.

This offers to connect to the public server as the first item, or to a custom server as a 2nd item. The 2nd choice is mostly for developers or for using a local server. When clicking connect, the screen will show a pairing code:

Pairing Code.

This code will have to be entered on the web-ui to establish the link. Once that has been done a beep-sequence on the ev3 confirms the link and this screen is shown:

Connected.

When a program contains an infinite loop, it can be killed by pressing the enter and down buttons on the ev3 simultaneously. If this is not enough to terminate the program, holding the back button for one second will kill it, but together with it the connector. The connector will restart automatically, but one needs to reconnect to the Open Roberta server again.

build status

Build Status Test Coverage

development

prerequisites

python3-ev3dev python3-bluez python3-dbus python3-gi

dist

VERSION="1.3.2" python setup.py sdist

Now you can also build a debian package using debuild or debuild -us -us. The new package will be in the parent folder.

upload to ev3

The easiest is to upload the debian package and install it.

scp ../openrobertalab_1.3.2-1_all.deb [email protected]:
ssh -t [email protected] "sudo dpkg --install openrobertalab_1.3.2-1_all.deb;"

Alternatively after changing single files you can do:

scp roberta/ev3.py [email protected]:
ssh -t [email protected] "sudo mv ev3.py /usr/lib/python3/dist-packages/roberta/; sudo systemctl restart openrobertalab"

configuration

The brickman ui will store configuration data under /etc/openroberta.conf. All configuration can be edited from the UI. If there is a need to manually change the config, it is advised to stop brickman.

Testing

python3 -m unittest discover roberta or nosetests. The test require python3-httpretty, but run without python3-ev3dev.

Logging

The service writes status to the system journal.

sudo journalctl -f -u openrobertalab

robertalab-ev3dev's People

Contributors

afgym-baeu avatar bidaian avatar dlech avatar ensonic avatar jpotecki avatar rbudde avatar

Watchers

 avatar

Forkers

nirvananimbusa

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.