Skip to content

Commit 7ed6522

Browse files
pre-commit-ci[bot]liuXinGangChina
authored andcommitted
style(pre-commit): autofix
1 parent f31fbb1 commit 7ed6522

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

sensing/autoware_crop_box_filter/src/crop_box_filter_node.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -213,18 +213,15 @@ void CropBoxFilter::filter_pointcloud(const PointCloud2ConstPtr & cloud, PointCl
213213
point_preprocessed[0] > param_.min_x && point_preprocessed[0] < param_.max_x;
214214
if ((!param_.negative && point_is_inside) || (param_.negative && !point_is_inside)) {
215215
// apply post-transform if needed
216-
if (need_postprocess_transform_)
217-
{
216+
if (need_postprocess_transform_) {
218217
Eigen::Vector4f point_postprocessed = eigen_transform_postprocess_ * point_preprocessed;
219218

220219
memcpy(&output.data[output_size], &cloud->data[global_offset], cloud->point_step);
221220

222221
std::memcpy(&output.data[output_size + x_offset], &point_postprocessed[0], sizeof(float));
223222
std::memcpy(&output.data[output_size + y_offset], &point_postprocessed[1], sizeof(float));
224223
std::memcpy(&output.data[output_size + z_offset], &point_postprocessed[2], sizeof(float));
225-
}
226-
else
227-
{
224+
} else {
228225
memcpy(&output.data[output_size], &cloud->data[global_offset], cloud->point_step);
229226

230227
if (need_preprocess_transform_) {

sensing/autoware_crop_box_filter/test/test_crop_box_filter_node.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
// limitations under the License.
1616

1717
#include "autoware/crop_box_filter/crop_box_filter_node.hpp"
18-
#include <memory>
18+
1919
#include <gtest/gtest.h>
2020

21+
#include <memory>
22+
2123
TEST(CropBoxFilterTest, checkOutputPointcloud)
2224
{
2325
rclcpp::init(0, nullptr);

0 commit comments

Comments
 (0)