Skip to content

Commit

Permalink
fix: building issues and update deps
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Krupka <[email protected]>
  • Loading branch information
macnack committed Oct 14, 2023
1 parent 692fac1 commit fde4060
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ endif()
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclcpp_components REQUIRED)
find_package(PCL 1.7 REQUIRED)
find_package(PCL 1.12 REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(std_msgs REQUIRED)
find_package(nav_msgs REQUIRED)
Expand All @@ -33,6 +33,8 @@ find_package(octomap_msgs REQUIRED)
find_package(tf2 REQUIRED)
find_package(tf2_ros REQUIRED)
find_package(tf2_msgs REQUIRED)
find_package(tf2_geometry_msgs REQUIRED)
find_package(rclcpp_components REQUIRED)

link_directories(${PCL_LIBRARY_DIRS})
include_directories(${PCL_INCLUDE_DIRS})
Expand Down Expand Up @@ -60,6 +62,8 @@ ament_target_dependencies(octomap_server2
tf2_ros
tf2_msgs
tf2
tf2_geometry_msgs
rclcpp_components
)

target_link_libraries(octomap_server2 ${PCL_LIBRARIES} ${OCTOMAP_LIBRARIES})
Expand Down
2 changes: 1 addition & 1 deletion deps.repos
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repositories:
./../perception_pcl:
type: git
url: https://github.com/ros-perception/perception_pcl.git
version: foxy-devel
version: ros2
./../pcl_msgs:
type: git
url: https://github.com/ros-perception/pcl_msgs.git
Expand Down
2 changes: 1 addition & 1 deletion src/octomap_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ namespace octomap_server {
second_pass.setInputCloud(pc.makeShared());
second_pass.filter(ground);

second_pass.setFilterLimitsNegative (true);
second_pass.setNegative(true);
second_pass.filter(nonground);
}
}
Expand Down

0 comments on commit fde4060

Please sign in to comment.