Skip to content

Commit

Permalink
Removed unused dependency. Fixed parameters in function call.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Tampier committed Apr 30, 2024
1 parent 25c28bc commit 3efef74
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.0.2)
project(patchwork)

add_compile_options(-std=c++17)
set(CMAKE_BUILD_TYPE "Release")
# set(CMAKE_BUILD_TYPE "Release")

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand All @@ -11,7 +11,6 @@ set(CMAKE_CXX_EXTENSIONS OFF)
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
message_generation
pcl_conversions
pcl_ros
roscpp
rospy
Expand Down
10 changes: 5 additions & 5 deletions nodes/pub_for_legoloam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ void callbackNode(const sensor_msgs::PointCloud2::ConstPtr& msg) {
PatchworkGroundSeg->estimate_ground(pc_curr, pc_ground, pc_non_ground, time_taken);


auto msg_curr = cloud2msg(pc_curr, PatchworkGroundSeg->frame_patchwork);
auto msg_ground = cloud2msg(pc_ground, PatchworkGroundSeg->frame_patchwork);
auto msg_curr = cloud2msg(pc_curr);
auto msg_ground = cloud2msg(pc_ground);

patchwork::ground_estimate cloud_estimate;
cloud_estimate.header = msg->header;
Expand All @@ -68,9 +68,9 @@ void callbackNode(const sensor_msgs::PointCloud2::ConstPtr& msg) {
EstimatePublisher.publish(cloud_estimate);

/*
CloudPublisher.publish(cloud2msg(pc_curr, PatchworkGroundSeg->frame_patchwork));
PositivePublisher.publish(cloud2msg(pc_ground, PatchworkGroundSeg->frame_patchwork));
NegativePublisher.publish(cloud2msg(pc_non_ground, PatchworkGroundSeg->frame_patchwork));
CloudPublisher.publish(cloud2msg(pc_curr));
PositivePublisher.publish(cloud2msg(pc_ground));
NegativePublisher.publish(cloud2msg(pc_non_ground));
*/
}

Expand Down
1 change: 0 additions & 1 deletion nodes/ros_kitti.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define PCL_NO_PRECOMPILE
#include <patchwork/node.h>
#include "patchwork/patchwork.hpp"
#include <pcl_conversions/pcl_conversions.h>
#include <visualization_msgs/Marker.h>

#include "tools/kitti_loader.hpp"
Expand Down
1 change: 0 additions & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<license>MIT</license>
<buildtool_depend>catkin</buildtool_depend>
<depend>geometry_msgs</depend>
<depend>pcl_conversions</depend>
<depend>pcl_ros</depend>
<depend>sensor_msgs</depend>
<depend>std_msgs</depend>
Expand Down

0 comments on commit 3efef74

Please sign in to comment.