Re: Orocos and xenomai-3

Adolfo Rodríguez Tsouroukdissian <[email protected]> Thu, 22 Jan 2015 10:18:08 +0100
Newsgroups gmane.science.robotics.orocos.devel
Message-ID <CAKuM+oKm-SBKcvxRy-wT2fysRqnf=HkmYQpYOcVcMZ3UDPC7gQ@mail.gmail.com>
On Wed, Jan 21, 2015 at 6:03 PM, Leopold Palomo-Avellaneda <
[email protected]> wrote:

> Hi,
>
> someone of you is working to migrate to Xenomai-3?
>

We are not, as there is not yet a stable release. Here are my two cents if
you or somebody else wants to give it a go.

As context, Xenomai 3 introduces a couple of big changes: It can deliver
real-time by means of a co-kernel (cobalt-core) as was done in Xenomai 2;
or it can simply rely on what Linux provides (like a PREEMPT-RT patched
kernel). Also, and very important, the default interfaces have switched to
being POSIX-based (copperplate library), so all other real-time APIs (or
skins) are implemented on top of this. In particular, the Xenomai 2 native
API (now called Alchemy) is a skin, while the POSIX API has been promoted
from a skin to the standard interface.

So, I see two alternatives for supporting Xenomai 3 in Orocos:

-  Orocos uses Xenomai 2 native API calls (Alchemy in Xenomai 3). You could
try to update the build configuration scripts to pick up Xenomai3 and use
it through the Alchemy interface. This would be the 'legacy support'
solution.

- Go for the POSIX interface and leverage the added flexibility it
provides. The OS abstraction differences between Linux and Xenomai would
become trivial, and copperplate would sit on top of glibc/ulibc or
libcobalt, depending on how real-time is delivered. I'm personally more
attracted to this approach.

I don't know which alternative would incur in a smaller porting effort, as
both POSIX (gnulinux) and Xenomai 2 native bindings already exist in Orocos.

More general info on migrating to Xenomai 3, which most likely you have
read by now:

http://xenomai.org/migrating-from-xenomai-2-x-to-3-x/

Best,

Adolfo.


> Best regards,
>
> Leopold
>
> --
> --
> Leopold Palomo-Avellaneda <[email protected]>
> Institut d'Organització i Control de Sistemes Industrials -IOC-
> Universitat Politècnica de Catalunya -UPC-
>
> Institute of Industrial and Control Engineering
> Technical University of Catalonia
> Avda. Diagonal 647, pl. 11
> 08028 BARCELONA (Spain)
>
> Tel. +34-934016655 (office)
> Tel. +34-934017163 (lab)
> Fax. +34-934016605
> --
> Orocos-Dev mailing list
> [email protected]
> http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
>



-- 
Adolfo Rodríguez Tsouroukdissian
Senior robotics engineer
[email protected]
http://www.pal-robotics.com

PAL ROBOTICS S.L
c/ Pujades 77-79, 4º4ª
08005 Barcelona, Spain.
Tel. +34.93.414.53.47
Fax.+34.93.209.11.09
Skype: adolfo.pal-robotics
Facebook <http://www.facebook.com/palrobotics1> - Twitter
<http://twitter.com/#%21/palrobotics> - PAL Robotics YouTube Channel
<http://www.youtube.com/user/PALRobotics>

AVISO DE CONFIDENCIALIDAD: Este mensaje y sus documentos adjuntos, pueden
contener información privilegiada y/o confidencial que está dirigida
exclusivamente a su destinatario. Si usted recibe este mensaje y no es el
destinatario indicado, o el empleado encargado de su entrega a dicha
persona, por favor, notifíquelo inmediatamente y remita el mensaje original
a la dirección de correo electrónico indicada. Cualquier copia, uso o
distribución no autorizados de esta comunicación queda estrictamente
prohibida.

CONFIDENTIALITY NOTICE: This e-mail and the accompanying document(s) may
contain confidential information which is privileged and intended only for
the individual or entity to whom they are addressed.  If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution or use of this e-mail and/or accompanying document(s) is
strictly prohibited.  If you have received this e-mail in error, please
immediately notify the sender at the above e-mail address.

-- 
Orocos-Dev mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev