Skip to content

Commit

Permalink
fix(hesai): remove unused var
Browse files Browse the repository at this point in the history
Signed-off-by: amadeuszsz <amadeusz.szymko.2@tier4.jp>
  • Loading branch information
amadeuszsz committed May 31, 2024
1 parent f02eb57 commit 16a2a49
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nebula_ros/src/hesai/hesai_ros_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,13 @@ nebula::Status HesaiRosWrapper::DeclareAndGetSensorConfigParams()

{
rcl_interfaces::msg::ParameterDescriptor descriptor = param_read_write();
uint16_t default_value;
RCLCPP_DEBUG_STREAM(get_logger(), config.sensor_model);
if (config.sensor_model == nebula::drivers::SensorModel::HESAI_PANDARAT128) {
descriptor.additional_constraints = "200, 400";
descriptor.integer_range = int_range(200, 400, 200);
default_value = 200;
} else {
descriptor.additional_constraints = "300, 600, 1200";
descriptor.integer_range = int_range(300, 1200, 300);
default_value = 600;
}
config.rotation_speed =
declare_parameter<uint16_t>("rotation_speed", descriptor);
Expand Down

0 comments on commit 16a2a49

Please sign in to comment.