Skip to content

rfjakob/barwin-pc

Repository files navigation

PC part of Barwin

Java app controlling Barwin's evolutionary algorithm and webinterface. See http://barwin.suuf.cc/ for more info about Barwin.

This repo merges these three repos:

Dependencies

Java 7 is required!

Install some packages:

  • Fedora: sudo yum install java-1.7.0-openjdk-devel rxtx guava tmux
  • Debian: sudo apt-get install openjdk-7-jdk librxtx-java libguava-java tmux realpath

Maybe some symlinks in the lib/ folder have to be adjusted to your system specific folders:

RXTX Library: (should be created automatically)

  • RXTXcomm.jar -> /usr/share/java/RXTXcomm.jar (optional)
  • librxtxSerial.so -> /usr/lib/jni/librxtxSerial.so

Play Framework: (must be created manually)

  • play -> /opt/play

If your distro does not offer any ready package, download (see http://www.playframework.com/download , tested with v2.2.2) the Play Framework and extract it to /opt/play. If the exectuable is not located at /opt/play/play you can adapt the symlink in barwin-pc/lib/play.

tmux is recommended to get tiled terminal windows:

  • sudo apt-get install tmux

Build

Run make in the src/ or top directory:

make

Run

You can start the whole system using the wrapper script (this will also trigger a build):

	./run-simulation.sh

or, if you have the actual hardware connected:

	./run-barwin.sh

If that does not work, start the services in this order:

  1. Build (compile) the Java source

     make
    
  2. Start the Arduino simulator (enter sudo password if asked):

     bin/arduino-sim.py
    
  3. Start the serial port service

     bin/serialRMI.sh
    
  4. Start the evolutionary algorithm

     bin/genBot.sh
    
  5. Start the web interface

     bin/play.sh
    
  6. Go to web interface

See Also

There is a more detailed README.md in each subfolder!

About

PC software for the Barwin cocktail robot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors