rosidl_python icon indicating copy to clipboard operation
rosidl_python copied to clipboard

Integers should be accepted as floats

Open timonegk opened this issue 3 years ago • 1 comments

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

  1. Define a message with a float field
  2. 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.

timonegk avatar Jul 13 '22 17:07 timonegk

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.

EsipovPA avatar Aug 13 '24 17:08 EsipovPA