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

FieldTypeMismatchException with "float32" fields #530

Closed
AviKenz opened this issue Sep 14, 2020 · 5 comments
Closed

FieldTypeMismatchException with "float32" fields #530

AviKenz opened this issue Sep 14, 2020 · 5 comments

Comments

@AviKenz
Copy link

AviKenz commented Sep 14, 2020

Hello everybody :)

I want to control my ROS vehicle with AckermannDrive.msg but the rosbridge throws a FieldTypeMismatchException when i publish a message.

After investigation i find out that the "float32" fields in AckermannDrive are the problem. they are implicitly converted to "float" by python and the Rosbridge fails to find the matching ROS type.

"float64" fields doesnt have this problem since they are converted to "double" by python. I tested it with Vector3.msg.

Thanks in advance :)

Expected Behavior

AckermannDrive.msg should be published.

Actual Behavior

FieldTypeMismatchException is thrown.

Steps to Reproduce the Problem

  1. Install ackermann_msgs package
  2. Start the rosbridge_server
  3. publish AckermannDrive.msg and observe the rosbridge_server console

Specifications

  • ROS Version (echo $ROS_DISTRO): dashing
  • OS Version (grep DISTRIB_CODENAME /etc/lsb-release): bionic
  • Rosbridge Version (roscat rosbridge_server package.xml | grep '<version>'): 1.0.2
  • Twisted Version (python -c 'import twisted; print twisted.version'): 17.9.0
@mvollrath
Copy link
Contributor

Probably related to #493

@AviKenz
Copy link
Author

AviKenz commented Sep 16, 2020

@mvollrath thanks for your PROMPT reaction. 😊🙏

hope you will consider @travipross comment and merge the PR soon. 😊😊😊

I need it for my Masterthesis. 😃😃😃

Thanks in advance !!! 😊🙏

@mvollrath
Copy link
Contributor

@AviKenz I don't intend to do that. I don't have a ROS2 environment to develop or test with, so we depend on others to work on ROS2. If you need it done you should make a PR.

@AviKenz
Copy link
Author

AviKenz commented Sep 18, 2020

the PR is created. let me know your wishes :)

@AviKenz
Copy link
Author

AviKenz commented Sep 20, 2020

PROBLEM FIXED !!! :)
Thanks again. you save me a lot of work :) :)

@AviKenz AviKenz closed this as completed Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants