GroG's blog

MRL Java -- Call Backs To --> Python !

GroG's picture

In Python we get to call Java Service methods directly (Yay!) ...

But the going the other way, when a Java service wan'ts to call a Python method - the method was always a bit convoluted.

First there was only the "input()" method..
and all Java could only call this one method on a Python script :(

def input():

Then this was enhanced so that at least the method name could be something besides "input", but the parameters were a challenge to get with convoluted array structure.  E.g.


Searching for an Image Searcher

GroG's picture

Ale has recently expressed an interest in the possiblities of identifying images with Google "search by image"

I believe we had talked about this before with the Cortex service, below was an attempt of a a process flow/state diagram


UltrasonicSensor - quicky

GroG's picture

Quick peek at some of the new UltrasonicSensor Service stuff ..
Use 1.0.31+
MRLComm.ino version is 15 (I think) - so you'll probably have to reload it.

THIS HAS NON BLOCKING RANGING WHICH DOESNT INTERFERE WITH SERVOS (YAY TO THAT!)


What Methods Can I Use ?

GroG's picture

Documentation is a very good thing.  Good documentation is even better. MRL provides a large array of Services  each of which contains a large number of methods.  When you are using Python, its nice to know what methods you have to work with.  Regrettably, we have a limited number of elves working on the project and they don't always have time to provide good documentation.

Here are some suggestions the elves have suggested.


The NEED for SPEED !

GroG's picture

WOOOHOOO !   IT IS WORKY !!! ... or mostly so - some fine tuning is still required...

But holy cow lets compare ....

236 micro seconds vs 18,392 micro seconds ..

Ya a bit of a difference...   

Here are some pros and cons of the new PulseIn

PROS


Sexy Odroid Case found by KMC (and other good cases)

GroG's picture


KMC found this cool looking case for the Odroid on Thingyverse

 

Here's a Arduino Uno case that would be good too.


Uber Video Water Streaming Home Automation Thingy

GroG's picture

Updated 2014.07.20

List of newly found excellent references


Update Command For Udoo from SSH

GroG's picture

It's a bit of a doosey ... its a one liner "install all Services" through ssh .. "would" work if it wasn't for the borked #**&@)*#@&  Java install on the Udoo

java -Djava.library.path="libraries/native:libraries/native/armv6.hfp.32.linux" -cp "./myrobotlab.jar:./libraries/jar/*" org.myrobotlab.service.Runtime org.myrobotlab.service.Runtime -update


What we are working on .... Best Borg Efforts :)

GroG's picture


 

Alessandruino mentioned once that it would be nice to have a page which contained information regarding what we currently are working on.  This represents our group effort (TODO) similar to the Borg Inventory representing our  communal parts :)

So, here it goes :