We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think this genmsg issue is more appropriate here.
In cases where constants in messages are set to special floats, for example: float32 a = NaN float32 p = Inf float32 n = -Inf The successfully generated Python script declare those as: a = nan p = inf n = -inf However, those causes NameError as nan, inf don't exist. The following works in Python: a = float('nan') p = float('inf') n = float('-inf')
In cases where constants in messages are set to special floats, for example:
float32 a = NaN float32 p = Inf float32 n = -Inf
The successfully generated Python script declare those as:
a = nan p = inf n = -inf
However, those causes NameError as nan, inf don't exist.
The following works in Python:
a = float('nan') p = float('inf') n = float('-inf')
A suggestion is to add the lines
nan = float('nan') inf = float('inf')
at the top of the output of msg_generator:
msg_generator
genpy/src/genpy/generator.py
Lines 817 to 821 in 5008399
Another solution would be to have special handling of these types of values at
Line 864 in 5008399
The text was updated successfully, but these errors were encountered:
As stated on the referenced ticket already: please consider to provide a pull request for that enhancement.
Sorry, something went wrong.
No branches or pull requests
I think this genmsg issue is more appropriate here.
A suggestion is to add the lines
at the top of the output of
msg_generator
:genpy/src/genpy/generator.py
Lines 817 to 821 in 5008399
Another solution would be to have special handling of these types of values at
genpy/src/genpy/generator.py
Line 864 in 5008399
The text was updated successfully, but these errors were encountered: