Skip to content

Commit

Permalink
Ci/update (#20)
Browse files Browse the repository at this point in the history
* fix: building issues and update deps

Signed-off-by: Maciej Krupka <[email protected]>

* fix: update CMakeLists.txt

* fix: update pcl version

Signed-off-by: Maciej Krupka <[email protected]>

---------

Signed-off-by: Maciej Krupka <[email protected]>
  • Loading branch information
macnack authored Oct 26, 2023
1 parent 5dcf924 commit 1b8e5a9
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 1b8e5a9

Please sign in to comment.