From dbf6ecfd65de2e1324d4a1f7b9d0c579860055cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20Emin=20BA=C5=9EO=C4=9ELU?= Date: Tue, 28 Nov 2023 13:30:20 +0300 Subject: [PATCH] refactor(robosense_packet.hpp): throw unknown resolution error --- .../nebula_decoders_robosense/decoders/robosense_packet.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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