Skip to content

Commit 69a0949

Browse files
committed
Code formatting
1 parent b308913 commit 69a0949

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ouster-ros/src/os_cloud_node.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ class OusterCloud : public OusterProcessingNodeBase {
151151
uint32_t max_range = impl::ulround(max_range_m * 1000);
152152
auto v_reduction = get_parameter("v_reduction").as_int();
153153
auto valid_values = std::vector<int>{1, 2, 4, 8, 16};
154-
if (std::find(valid_values.begin(), valid_values.end(), v_reduction) == valid_values.end()) {
155-
RCLCPP_FATAL_STREAM(get_logger(),
154+
if (std::find(valid_values.begin(), valid_values.end(),
155+
v_reduction) == valid_values.end()) {
156+
RCLCPP_FATAL(get_logger(),
156157
"v_reduction needs to be one of the values: {1, 2, 4, 8, 16}");
157158
throw std::runtime_error("invalid v_reduction value!");
158159
}

ouster-ros/src/os_driver_node.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,9 @@ class OusterDriver : public OusterSensor {
119119
uint32_t max_range = impl::ulround(max_range_m * 1000);
120120
auto v_reduction = get_parameter("v_reduction").as_int();
121121
auto valid_values = std::vector<int>{1, 2, 4, 8, 16};
122-
if (std::find(valid_values.begin(), valid_values.end(), v_reduction) == valid_values.end()) {
123-
RCLCPP_FATAL_STREAM(get_logger(),
122+
if (std::find(valid_values.begin(), valid_values.end(),
123+
v_reduction) == valid_values.end()) {
124+
RCLCPP_FATAL(get_logger(),
124125
"v_reduction needs to be one of the values: {1, 2, 4, 8, 16}");
125126
throw std::runtime_error("invalid v_reduction value!");
126127
}

0 commit comments

Comments
 (0)