As explained in the ROS documentation, the C++ type of a bool[] field is std::vector<uint8_t>. This is because std::vector<bool> is a vector of bytes, not booleans, and cannot easily be converted to booleans.
This change ensures that the cpptype of a bool[] is recorded as UInt8.
Apologies, in advance if I didn't follow the proper bug/PR process. I'm new to the community!
As explained in the ROS documentation, the C++ type of a
bool[]
field isstd::vector<uint8_t>
. This is becausestd::vector<bool>
is a vector of bytes, not booleans, and cannot easily be converted to booleans.This change ensures that the cpptype of a
bool[]
is recorded as UInt8.Apologies, in advance if I didn't follow the proper bug/PR process. I'm new to the community!