-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
orogen should not create types that are ambigious to typelib #8
Comments
.... You bad, bad person. While I do agree with you on the principle, I really want to say this: SERIOUSLY ? |
;-) Good Morning Sylvain. This was again such as "bad things happen" event.
unfourtnalty orogen still accepts this structure, but typelib can not handle these bitfields correctly, so because of this "it has to work quickly" daily working ways is simply added a "C++ like header for the only serialization-used C header which has a simliar name. This resulted in this next orogen "bug". ... daily computer scientest work ... P.S. i know i could had used uint8_t in this example, but the structure was different in early versions so i used bitfields... |
Hm, in general, we got a problem with bitfields. In typelib all offsets are in byte. If you define a type using bitfields, were the members are not alligend to 8 bit, it will fail. The clang importer has a check for these. |
This is solved by the new-style |
I had a header which contains this structures:
In geeneral this works fine but later by using them in the typelib binding i hade no way to handle them anymore caused by this error:
I put this issue to orogen because i see no way to handle this problem in the typelib binding, therefore i recomment that orogen should refuse the creation of such types then.
The text was updated successfully, but these errors were encountered: