Skip to content
New issue

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

Integers should be accepted as floats #172

Open
timonegk opened this issue Jul 13, 2022 · 1 comment · May be fixed by #216
Open

Integers should be accepted as floats #172

timonegk opened this issue Jul 13, 2022 · 1 comment · May be fixed by #216
Labels
help wanted Extra attention is needed

Comments

@timonegk
Copy link

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.

@clalancette clalancette added the help wanted Extra attention is needed label Jul 28, 2022
@EsipovPA
Copy link

EsipovPA commented Aug 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants