You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When generating messages from ROS2 message definitions, default values can result in a C# class which cannot be compiled.
To Reproduce
Steps to reproduce the behavior:
Generate C# class for a message definition which contains string constants or default values, e.g.:
int32 status
int32 OK = 200
int32 ERROR = 300
string msg
string OK_MSG = "Everything is fine"
string ERROR_MSG = "Something is wrong"
After message generation, the int32 constants will be fine, but the string constants will be formatted incorrectly:
...
public int status;publicintOK=200;publicintERROR=300;publicstringmsg;publicstringOK_MSG=""Everything is fine"";publicstringERROR_MSG=""Something is wrong"";
...
Expected behavior
All standard features of ROS2 message definitions should be handled.
Environment (please complete the following information, where applicable):
Unity Version: Unity 2020.3.8f1
Unity machine OS + version: Windows 10
ROS machine OS + version: Ubuntu 20.04, ROS Galactic
ROS–Unity communication: Docker
Branch or version: 0.7.0-preview
The text was updated successfully, but these errors were encountered:
Describe the bug
When generating messages from ROS2 message definitions, default values can result in a C# class which cannot be compiled.
To Reproduce
Steps to reproduce the behavior:
int32
constants will be fine, but the string constants will be formatted incorrectly:Expected behavior
All standard features of ROS2 message definitions should be handled.
Environment (please complete the following information, where applicable):
The text was updated successfully, but these errors were encountered: