Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS2 port perception_pcl #229

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
*.pyc

build/
install/
log/

perception_pcl.xcodeproj/

build.log

.vscode/
52 changes: 33 additions & 19 deletions pcl_conversions/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
cmake_minimum_required(VERSION 2.8)
cmake_minimum_required(VERSION 3.5)
project(pcl_conversions)

find_package(catkin REQUIRED COMPONENTS)
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

find_package(ament_cmake REQUIRED)

find_package(PCL REQUIRED COMPONENTS common io)
find_package(Eigen3 REQUIRED)
find_package(pcl_msgs REQUIRED)
find_package(rclcpp REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(std_msgs REQUIRED)

# There is a bug in the Ubuntu Artful (17.10) version of the VTK package,
# where it includes /usr/include/*-linux-gnu/freetype2 in the include
Expand All @@ -21,24 +34,25 @@ if(NOT "${PCL_INCLUDE_DIRS}" STREQUAL "")
endforeach()
endif()

catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS pcl_msgs roscpp sensor_msgs std_msgs
DEPENDS EIGEN3 PCL
)

install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
include_directories(${rclcpp_INCLUDE_DIRS})

ament_export_include_directories(include)

install(DIRECTORY include/
DESTINATION include
)

if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS roscpp pcl_msgs sensor_msgs std_msgs)
include_directories(
include
${catkin_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS})
#if(BUILD_TESTING)
# find_package(catkin REQUIRED COMPONENTS roscpp pcl_msgs sensor_msgs std_msgs)
# include_directories(
# include
# ${catkin_INCLUDE_DIRS}
# ${PCL_INCLUDE_DIRS}
# ${EIGEN3_INCLUDE_DIRS})
#
# catkin_add_gtest(test_pcl_conversions test/test_pcl_conversions.cpp)
# target_link_libraries(test_pcl_conversions ${catkin_LIBRARIES})
#endif()

catkin_add_gtest(test_pcl_conversions test/test_pcl_conversions.cpp)
target_link_libraries(test_pcl_conversions ${catkin_LIBRARIES})
endif()
ament_package()
Loading