|
|
@@ -327,12 +327,12 @@ void PclXYZITToArray(
|
|
|
//pcl::PointXYZI point = in_pcl_pc_ptr->at(i);
|
|
|
int indice = indices[i];
|
|
|
pcl::PointXYZI point = in_pcl_pc_ptr->at(indice);
|
|
|
- Eigen::Vector3d new_point, old_point;
|
|
|
- old_point<<point.x, point.y, point.z;
|
|
|
- new_point = rotation_matrix * (old_point) + trans_matrix;
|
|
|
- out_points_array[i * 5 + 0] = new_point[0];
|
|
|
- out_points_array[i * 5 + 1] = new_point[1];
|
|
|
- out_points_array[i * 5 + 2] = new_point[2];
|
|
|
+// Eigen::Vector3d new_point, old_point;
|
|
|
+// old_point<<point.x, point.y, point.z;
|
|
|
+// new_point = rotation_matrix * (old_point) + trans_matrix;
|
|
|
+ out_points_array[i * 5 + 0] = point.x;
|
|
|
+ out_points_array[i * 5 + 1] = point.y;
|
|
|
+ out_points_array[i * 5 + 2] = point.z;
|
|
|
out_points_array[i * 5 + 3] =
|
|
|
static_cast<float>(point.intensity / normalizing_factor);
|
|
|
out_points_array[i * 5 + 4] = 0;
|
|
|
@@ -746,13 +746,13 @@ int main(int argc, char *argv[])
|
|
|
);
|
|
|
}
|
|
|
std::cout<<"PointPillars Init OK."<<std::endl;
|
|
|
- Eigen::AngleAxisd r_z ( -0.0418, Eigen::Vector3d ( 0,0,1 ) ); //沿 Z 轴旋转 yaw +
|
|
|
- Eigen::AngleAxisd r_y ( -0.0242, Eigen::Vector3d ( 0,1,0 ) ); //沿 Y 轴旋转 roll +
|
|
|
- Eigen::AngleAxisd r_x ( -0.0137, Eigen::Vector3d ( 1,0,0 ) ); //沿 X 轴旋转 pitch -
|
|
|
- Eigen::Quaterniond q_zyx = r_z*r_y*r_x; //ZYX旋转顺序(绕旋转后的轴接着旋转)
|
|
|
+// Eigen::AngleAxisd r_z ( -0.0418, Eigen::Vector3d ( 0,0,1 ) ); //沿 Z 轴旋转 yaw +
|
|
|
+// Eigen::AngleAxisd r_y ( -0.0242, Eigen::Vector3d ( 0,1,0 ) ); //沿 Y 轴旋转 roll +
|
|
|
+// Eigen::AngleAxisd r_x ( -0.0137, Eigen::Vector3d ( 1,0,0 ) ); //沿 X 轴旋转 pitch -
|
|
|
+// Eigen::Quaterniond q_zyx = r_z*r_y*r_x; //ZYX旋转顺序(绕旋转后的轴接着旋转)
|
|
|
// 四元数-->>旋转矩阵
|
|
|
- rotation_matrix = q_zyx.toRotationMatrix();
|
|
|
- trans_matrix << 0, 1.25, 0.72;
|
|
|
+// rotation_matrix = q_zyx.toRotationMatrix();
|
|
|
+// trans_matrix << 0, 1.25, 0.72;
|
|
|
gpa = iv::modulecomm::RegisterRecv(gstrinput.data(),ListenPointCloud);
|
|
|
gpdetect = iv::modulecomm::RegisterSend(gstroutput.data(), 10000000,1);
|
|
|
gpthread = new std::thread(statethread);
|