RobotecAI / ros2cs

A C# (.Net) implementation of ros2 client library (rcl), enabling communication between ros2 ecosystem and C#/.Net applications such as Unity3D
Apache License 2.0
91 stars 22 forks source link

support hex format #64

Open stewpend0us opened 6 months ago

stewpend0us commented 6 months ago

msg file:

int32 FAULT_OVER_TEMP=0x00000001
...
int32 FAULT_LAST=0x8000000

works fine for c++ but not working in c#. here's the message I get:

Unable to parse field defined as 'FieldDeclaration { Type = uint32, Identifier = FAULT_OVER_TEMP, Value = 0x00000001, IsArray = False, ArrayLength = , InlineComment = , IsUpperBounded = False }': The input string '0x00000001' was not in a correct format.