Skip to content

Commit

Permalink
adding linters to lidar_apollo_instance_segmentation (autowarefoundat…
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-tier4 authored Dec 23, 2020
1 parent a06a9ad commit ac96031
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ if(TRT_AVAIL AND CUDA_AVAIL AND CUDNN_AVAIL)

if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic -Wno-unused-parameter)
Expand Down Expand Up @@ -142,6 +144,10 @@ if(TRT_AVAIL AND CUDA_AVAIL AND CUDNN_AVAIL)
tensorrt_apollo_cnn_lib
)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

ament_auto_package(INSTALL_TO_SHARE
launch
Expand All @@ -153,6 +159,11 @@ else()
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()

# to avoid launch file missing without a gpu
ament_auto_package(INSTALL_TO_SHARE
launch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
* limitations under the License.
*****************************************************************************/

#ifndef CLUSTER2D_H
#define CLUSTER2D_H
#ifndef LIDAR_APOLLO_INSTANCE_SEGMENTATION__CLUSTER2D_HPP_
#define LIDAR_APOLLO_INSTANCE_SEGMENTATION__CLUSTER2D_HPP_

#include "pcl/point_types.h"
#include "pcl/point_cloud.h"
Expand Down Expand Up @@ -161,4 +161,4 @@ class Cluster2D
void traverse(Node * x);
};

#endif // CLUSTER_2D_H
#endif // LIDAR_APOLLO_INSTANCE_SEGMENTATION__CLUSTER2D_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<depend>tf2_geometry_msgs</depend>
<depend>tf2_eigen</depend>
<depend>tf2_ros</depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_cmake_cppcheck</test_depend>

<export>
<build_type>ament_cmake</build_type>
</export>
Expand Down

0 comments on commit ac96031

Please sign in to comment.