Skip to content

Commit 8ec4ab0

Browse files
committed
Fix:numerical type conversion issue in transformLidar; Remove redundant dependency
1 parent e0c90f7 commit 8ec4ab0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ find_package(catkin REQUIRED COMPONENTS
7272

7373
find_package(Eigen3 REQUIRED)
7474
find_package(PCL 1.8 REQUIRED)
75-
find_package(GTSAM REQUIRED QUIET)
75+
#find_package(GTSAM REQUIRED QUIET)
7676

7777
message(Eigen: ${EIGEN3_INCLUDE_DIR})
7878

src/voxelMapping.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,8 @@ void transformLidar(const state_ikfom &state_point, const PointCloudXYZI::Ptr &i
557557
for (size_t i = 0; i < input_cloud->size(); i++) {
558558
pcl::PointXYZINormal p_c = input_cloud->points[i];
559559
Eigen::Vector3d p_lidar(p_c.x, p_c.y, p_c.z);
560-
// FIXME 这里需要处理LI外参
561-
auto p_body = state_point.rot * (state_point.offset_R_L_I * p_lidar + state_point.offset_T_L_I) + state_point.pos;
560+
// HACK we need to specify p_body as a V3D type!!!
561+
V3D p_body = state_point.rot * (state_point.offset_R_L_I * p_lidar + state_point.offset_T_L_I) + state_point.pos;
562562
PointType pi;
563563
pi.x = p_body(0);
564564
pi.y = p_body(1);

0 commit comments

Comments
 (0)