rttlua does not support enum types as arguments for operations

Ruben Smits <[email protected]>
Newsgroups gmane.science.robotics.orocos.devel
Message-ID <CAN8Phbk4P433Y+JK00Zd0kfWJ7bxDPN-TJMhFtGPWirKSzep3Q@mail.gmail.com>
Hi,

I've got an enum type for which I created a typekit using typegen and an
extra plugin to add these enums to the GlobalTypeRepository of RTT.

I have a component that uses this enum as an argument type. Everything goes
fine using the OCL Taskbrowser, I can call my operation using the enum
taken from the global repository.

The same however fails using rttlua with the following error:

```
> component.operation("string",rtt.globals.MYENUM)

/home/rsmits/orocos_toolchain/ocl/bin/rttlua-gnulinux:
.../orocos_toolchain/ocl/lua/modules/rttlib.lua:716: Operation.call:
argument 2 is not assignable.

```

Does anyone have an idea why this happens? Is this due to the fact that I
take the value from the GlobalRepository?



Ruben

Ruben Smits, Phd
Chief Technology Officer
Intermodalics BVBA
+32479511786
www.intermodalics.eu

-- 
Orocos-Dev mailing list
[email protected]
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.