Micro-XRCE-DDS icon indicating copy to clipboard operation
Micro-XRCE-DDS copied to clipboard

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

Open clippinglee opened this issue 8 months ago • 5 comments

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();

clippinglee avatar May 30 '24 07:05 clippinglee