Blogs

Cascading Detach

GroG's picture

This is a post to explore the possibility of a "cascading detach".  This is when a Service is released from Mrl and is currently attached to other services.  The goal will be to release the service as cleanly as possible, and in the process notify other Services it has been released.  Potentially, this notification will "cascade" into mutliple detach calls to successfully remove the target Service.

Setup - Here is setup of the problem - ***Mats can you add to the script? to get the initial setup?***

[[/home/GroG/detach.py]]


My New Robot

AdolphSmith's picture

To be updated by AdolphSmith


What To Borg ?

GroG's picture

Mats has this cool I2C temprature sensor - just needs a tiny MRL driver.

What thingies do you have which might be Borg'd ?!


More on Attach !

GroG's picture

Ahoy !

We recently were excited to add Java 8 default methods to interfaces for our services ... 
Sadly, this borked Jython :(

But my last checkin should have fixed all that.  There are now no more "default" methods in any Java org.myrobotlab.service interface.

In the process I tried to do some refactoring.  I created a new interface ... "Attachable" !  And moved interfaces which were common to ALL services to org.myrobotlab.framework.interfaces


Jython <---> Java 8 default Interfaces ... No Worky ! :(

GroG's picture

I was hoping to wrap up working with the interfaces.  Mats and I made a lot of progress defining how future "attach" will work, and starting to get into the details of implementation.   I have been testing with START_INMOOV.bat script, but now realize there is a rather large issue.

The issue is the new improvement from Java 8 of "default" interface methods are not reachable from Jython !


Service Attaching .... Diving Deeper

GroG's picture

We want to build services which can easily be attached.  With simple and consistent rules we can make a platform which supports much more complicated systems.


hello the world amby is here

ambroise's picture

hello the team yes i am here if you don't hear me it is because i am working about building legs with drill motor for my inmoov

the next steep is programmation

my first testes is good

video is here

https://www.youtube.com/watch?v=7MpkkDr3bWw


MotorController is missing an attach !

GroG's picture

I'm trying to get Sabertooth service working again .. 
In the process I noticed MotorContoller is missing this method .. 

public void attach(MotorController controller) throws Exception;  

to go along with the other Controller interfaces and to follow the Attach Pattern !