[Rock-dev] Inheritance in base/types - the natural way to go?

Javier Hidalgo Carrió javier.hidalgo_carrio at dfki.de
Tue Apr 14 14:01:17 CEST 2015


On 10.04.2015 21:02, Sylvain Joyeux wrote:
>> This would help different data-type port connections by subtype
>> polymorphism.
> No it would not, because connections cannot currently be made between
> ports of two different types.
>
> Let me say that again:
>    if you  have OutputPort<A> and InputPort<B> with A != B (with !=
> being defined strictly, not "can be converted to" but "is really
> really the same") then RTT will not accept the connection
>
> Or, another way:
>    RTT port connections don't support data conversions
Thanks for the explanation. It would explain this:

typelib.rb:273:in `from_ruby': the types have the same name but 
different definitions: /base/samples/Joints <-> /base/samples/Joints 
(Typelib::ConversionToMismatchedType)

Javier.


More information about the Rock-dev mailing list