-
Notifications
You must be signed in to change notification settings - Fork 341
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
unsigned cast for listener_serialized_message.cpp #279
Comments
Please create a PR for your proposed patch. |
Can you elaborate a little bit on the char data with leading 1? How did you get this data? Could you come up with an example which will fail to transport correctly? I feel like - if that example doesn't work - having the cast is only hiding the symptoms. Maybe then the underlying char array of the raw message should indeed be a unsigned char array. |
This issue seems to explain this well: stackoverflow - printf adds extra ffffff to hex print from a char array The main idea is that for large char values e.g.: To reproduce this you could try to send chars in that range. This can be done via:
Btw: A serialized print of middle ware data could be a nice feature for ros topic echo e.g.: To fix this it would be sufficient to add a c-style cast |
with the related changes, this should be fixed. |
Bug report
Required Info:
Steps to reproduce issue
-> Interpreted as negative number
-> Print fails
Expected behavior
Print data correctly aligned
Actual behavior
Print failed
Additional information
To fix this issue add a unsigned cast to:
demos/demo_nodes_cpp/src/topics/listener_serialized_message.cpp:55
The text was updated successfully, but these errors were encountered: