From acf2a4934006cae2c80f67bb5197c042a3c5dcc8 Mon Sep 17 00:00:00 2001 From: Max SCHMELLER Date: Fri, 30 Aug 2024 18:27:04 +0900 Subject: [PATCH] fix(hesai_ros_wrapper): reject sync_angle = 360 as this will crash the sensors --- nebula_ros/src/hesai/hesai_ros_wrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nebula_ros/src/hesai/hesai_ros_wrapper.cpp b/nebula_ros/src/hesai/hesai_ros_wrapper.cpp index 95df63653..c72a448b8 100644 --- a/nebula_ros/src/hesai/hesai_ros_wrapper.cpp +++ b/nebula_ros/src/hesai/hesai_ros_wrapper.cpp @@ -125,7 +125,7 @@ nebula::Status HesaiRosWrapper::DeclareAndGetSensorConfigParams() { rcl_interfaces::msg::ParameterDescriptor descriptor = param_read_write(); - descriptor.integer_range = int_range(0, 360, 1); + descriptor.integer_range = int_range(0, 359, 1); config.sync_angle = declare_parameter("sync_angle", descriptor); }