eProsima / Micro-XRCE-DDS-Gen

Micro XRCE-DDS IDL code generator tool. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
10 stars 13 forks source link

Bug: int8 type does not generate correctly. #54

Closed Ryanf55 closed 1 year ago

Ryanf55 commented 1 year ago

I have a simple message that does not work with int8 type.

struct MyInt8 {
    int8 myInt8Field;
};

This message comes from the status field of NavSatFix, which is the de facto message for ROS2 position reporting in WGS-84 coordinates. It's used in many visualization tools, such as Foxglove.

MicroXRCEDDSGen has a crash trying to generate the type.

Hash: 0eed89a87427d3faca9a05e61bf31509529d627d (latest develop)

Note: The char type does work, perhaps it's a missing alias? Note: In general, ROS2 uses the uintN and intN format for datatypes, which isn't tested. This request would apply to make sure all the alias types work.

Here's the screenshot of the relevant part of the OMG IDL standard that shows it as a standard type. image

Acuadros95 commented 1 year ago

Fixed when https://github.com/eProsima/IDL-Parser/pull/68 is merged.

pablogs9 commented 1 year ago

https://github.com/eProsima/Micro-XRCE-DDS-Gen/pull/59 merged closing