eProsima / Micro-XRCE-DDS-Client

Micro XRCE-DDS Client repository. Looking for commercial support? Contact info@eprosima.com
Apache License 2.0
130 stars 82 forks source link

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 #386

Closed clippinglee closed 3 months ago

clippinglee commented 3 months ago

If ROS gets this error,we need change all "ucdr_serialize_bool"in xrce_types.c. liskes: image 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 commented 3 months ago

Duplicated https://github.com/eProsima/Micro-XRCE-DDS/issues/173