diff --git a/nebula_decoders/include/nebula_decoders/nebula_decoders_robosense/decoders/robosense_packet.hpp b/nebula_decoders/include/nebula_decoders/nebula_decoders_robosense/decoders/robosense_packet.hpp index d942d4622..607c44aac 100644 --- a/nebula_decoders/include/nebula_decoders/nebula_decoders_robosense/decoders/robosense_packet.hpp +++ b/nebula_decoders/include/nebula_decoders/nebula_decoders_robosense/decoders/robosense_packet.hpp @@ -251,8 +251,7 @@ double get_dis_unit(const PacketT & packet) } else if (range_resolution == 1) { return 0.0025; } - // Should throw an error here? - // throw std::runtime_error("Unknown range resolution"); + throw std::runtime_error("Unknown range resolution"); } /// @brief Convert raw angle value from packet to std::string