Invalid calculation in error messages
Description
Invalid calculation between objects that have no suitable type-conversion to. Following are typical examples Operator(+) has been used between std::string and integer scalar.
xsens_imu_translator.cpp
throw std::runtime_error("Unknown data_id: " + +data_id);
point_cloud_utils.cpp
throw std::runtime_error("Intensity type not supported: " + m_intensity_datatype);
How to Reproduce
clang can detect the error. [-Wstring-plus-int]
export CC=clang
export CXX=clang++
cd AutowareAuto
colcon build --cmake-force-configure --cmake-args -DBUILD_TESTING=OFF --packages-up-to xsens_driver
colcon build --cmake-force-configure --cmake-args -DBUILD_TESTING=OFF --packages-up-to lidar_utils
Current Behavior
Unexpected message output
Expected behavior
The data should be converted with std::to_string() and added to the message.