Next version 'Nixie' is coming soon !

Help us to get ready with MyRobotLab version Nixie: try it !

"Finally"...  presenting "The Arduino Service - reloaded (again)" -  it's not ready for "prime time" , but it's starting to come together.  It would be great if I could get some testing & feedback..  with enough updates I'm hoping it might even be useful :)

If your interested,
here are the steps to get started in graphic detail..

Digital inputs are now working. I'd do a screenshot of a Arduino Mega 2560 - but only have a Uno compatible board this minute.  The 2560 give you a LOT of lines. Finally seperated Arduino IDE's compiler & uploader from the gui.  Still needs a bit of clean up.  I like the new Rainbow Traces !  Starting to move on to OpenCV updates !  So much has changed.....

Here's a video from a very cool project by morrows_end & Kegfloater

They are using a Jython state machine to control a 3D simulator (SEAR) and will be using the same control logic to plug into a real Roomba.

 

 

With this short Jython script, an Arduino service is created and a Arduino sketch is compiled then uploaded to the microcontroller.  In this case the sketch is MRLComm which allows communication between MRL and Arduio, but other sketches could be loaded too, depending on the state of the Borg :)

 

Here's a preview..  Complete with Java & Jython consoles, plus lovely open, save, restart and execute buttons.  I'll be looking into autocompletion and caret positioning after Jython errors....

Install Eclipse

  • Download Eclipse Indigo for Java SE developers.
  • Unpack tar into ~/
    • Create shortcut on desktop that points at /home/myuser/eclipse/eclipse
  • Install Eclipse Software:
    • Git
    • Subclipse
    • ADT-Plugin (Android)

Download MRL source

Assumes workspace used is "~/workspace"

Yay, I finally got syntax highlighting to work @ the MRL site !  Woohoo...  Now I just have to make some buttons in the editor which will allow injection of Python or Java ...   
Thanks Alex Gorbatchev for a very sweet Javascript brush library !

Javadoc link
Example code (from branch develop):
#########################################
# SwingGui.py
# description: Service used to graphically display and control other services
# categories: display
# more info @: http://myrobotlab.org/service/SwingGui
#########################################
 
# start the service
gui = runtime.start('gui','SwingGui')
 
# start a new service
python2 = runtime.start('python2','Python')
 
# focus service
gui.setActiveTab("python2")
 
#gui.undockTab("python2")

This service allows other services control features to be displayed.  It is the service which you "see" when you start MyRobotLab.  It is set to start automatically when one of the scripts "myrobotlab.bat, myrobotlab.sh, jython.bat, or jython.sh" are run.

It provides a service tab for other services.  With its own tab it provides a map of message routes and icons of currently running services.

Services

    

Hardware

No additional hardware is needed for this tutorial

The MRLClient is a client adapter which allows other Java programs to interoperate with MyRobotLab.  Although the myrobotlab.jar can be included and used in a Java program directly, it may sometimes be desirable to communicate over the network with an adapter.

The MRLClient jar is a small binary which uses the network to send and recieve messages to a running MyRobotLab instance.  Other network adapters could be created for languages besides Java, but currently only Java is supported.