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

if ROS agent gets this error: eprosima::fastcdr::exception::BadParamException: Unexpected byte value in Cdr::deserialize(bool), expected 0 or 1,we need change ucdr serialize bool #173

Open
clippinglee opened this issue May 30, 2024 · 5 comments

Comments

@clippinglee
Copy link

clippinglee commented May 30, 2024

If ROS gets this error,we need change all "ucdr_serialize_bool"in xrce_types.c.
liskes:
image

There is no real bool type in a microcontroller, and a value >0 is considered true,but if true not equal 0x01,(SOC)it will be error.
So we should input 0 or 1 parameters for ucdr_serialize_bool();

@pablogs9
Copy link
Member

Could you please open a PR with your change proposal?

@clippinglee
Copy link
Author

sure , i try .Please review PR

@pablogs9
Copy link
Member

pablogs9 commented Jun 3, 2024

Could you report the compiler error you are having here?

@clippinglee
Copy link
Author

oh,it is not compiler error ,it is test error.

This is the error reported by ros agent that I found in my testing on the TDA4 A core linux.
image

@clippinglee
Copy link
Author

eProsima/Fast-CDR#41
you can see the issue in ROS2

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