rosidl_python
rosidl_python copied to clipboard
Integers should be accepted as floats
Bug report
Required Info:
- Operating System: Ubuntu 22.04
- Installation type: binary
- Version or commit hash: 0.15.0
- DDS implementation: cyclonedds
- Client library (if applicable): rclpy
Steps to reproduce issue
- Define a message with a float field
- Try to assign an integer to the field.
Expected behavior
The integer should be automatically casted to a float.
Actual behavior
You manually have to cast the integer to float, otherwise you get the error message AssertionError: The 'x' field must be of type 'float.
Hey guys!
Just wanted to check if someone is working on this issue.
If nobody is working on this one, I'd like to try my best with it.