Skip to content

Commit

Permalink
ci(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored and xmfcx committed Nov 11, 2022
1 parent d398edb commit fcb1b9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
#define POINTCLOUD_PREPROCESSOR__UTILITY__UTILITIES_HPP_

#include <common/types.hpp>
#include <geometry_msgs/msg/polygon.hpp>
#include <point_cloud_msg_wrapper/point_cloud_msg_wrapper.hpp>

#include <geometry_msgs/msg/polygon.hpp>
#include <sensor_msgs/msg/point_cloud2.hpp>

#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
Expand Down
4 changes: 2 additions & 2 deletions sensing/pointcloud_preprocessor/src/utility/utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void remove_polygon_cgal_from_cloud(
pcl::PointCloud<pcl::PointXYZ> pcl_output;

point_cloud_msg_wrapper::PointCloud2View<autoware::common::types::PointXYZ> view{cloud_in};
for (const auto& point : view) {
for (const auto & point : view) {
// check if the point is inside the polygon
if (
CGAL::bounded_side_2(
Expand Down Expand Up @@ -96,7 +96,7 @@ void remove_polygon_cgal_from_cloud(

pcl::PointCloud<pcl::PointXYZ> filtered_cloud;
point_cloud_msg_wrapper::PointCloud2View<autoware::common::types::PointXYZ> view{cloud_in};
for (const auto& point : view) {
for (const auto & point : view) {
// if the point is inside the polygon, skip inserting and check the next point
pcl::PointXYZ p(point.x, point.y, point.z);
if (point_within_cgal_polys(p, polyline_polygons)) {
Expand Down

0 comments on commit fcb1b9c

Please sign in to comment.