Skip to content

Commit

Permalink
Merge pull request laboshinl#89 from matlabbe/master
Browse files Browse the repository at this point in the history
Fixed some compilation errors
  • Loading branch information
laboshinl authored Oct 17, 2018
2 parents a06980a + 6c9d337 commit a4c364a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
tf)
tf
pcl_conversions)

find_package(Eigen3 REQUIRED)
find_package(PCL REQUIRED)
Expand All @@ -20,7 +21,7 @@ include_directories(
${PCL_INCLUDE_DIRS})

catkin_package(
CATKIN_DEPENDS geometry_msgs nav_msgs roscpp rospy std_msgs
CATKIN_DEPENDS geometry_msgs nav_msgs roscpp rospy std_msgs tf pcl_conversions
DEPENDS EIGEN3 PCL
INCLUDE_DIRS include
LIBRARIES loam
Expand Down
2 changes: 2 additions & 0 deletions include/loam_velodyne/BasicLaserMapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class BasicLaserMapping

auto& downSizeFilterCorner() { return _downSizeFilterCorner; }
auto& downSizeFilterSurf() { return _downSizeFilterSurf; }
auto& downSizeFilterMap() { return _downSizeFilterMap; }

auto frameCount() const { return _frameCount; }
auto scanPeriod() const { return _scanPeriod; }
Expand Down Expand Up @@ -177,6 +178,7 @@ class BasicLaserMapping

pcl::VoxelGrid<pcl::PointXYZI> _downSizeFilterCorner; ///< voxel filter for down sizing corner clouds
pcl::VoxelGrid<pcl::PointXYZI> _downSizeFilterSurf; ///< voxel filter for down sizing surface clouds
pcl::VoxelGrid<pcl::PointXYZI> _downSizeFilterMap; ///< voxel filter for down sizing accumulated map

bool _downsizedMapCreated = false;
};
Expand Down
2 changes: 1 addition & 1 deletion include/loam_velodyne/MultiScanRegistration.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class MultiScanMapper {
* @param angle the vertical point angle (in rad)
* @return the ring ID
*/
inline int getRingForAngle(const float& angle);
int getRingForAngle(const float& angle);

/** Multi scan mapper for Velodyne VLP-16 according to data sheet. */
static inline MultiScanMapper Velodyne_VLP_16() { return MultiScanMapper(-15, 15, 16); };
Expand Down
2 changes: 2 additions & 0 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<build_depend>std_msgs</build_depend>
<build_depend>sensor_msgs</build_depend>
<build_depend>tf</build_depend>
<build_depend>pcl_conversions</build_depend>

<run_depend>geometry_msgs</run_depend>
<run_depend>nav_msgs</run_depend>
Expand All @@ -32,6 +33,7 @@
<run_depend>rospy</run_depend>
<run_depend>std_msgs</run_depend>
<run_depend>tf</run_depend>
<run_depend>pcl_conversions</run_depend>

<test_depend>rostest</test_depend>
<test_depend>rosbag</test_depend>
Expand Down

0 comments on commit a4c364a

Please sign in to comment.