Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运动畸变的小问题 #18

Open
yumingdong opened this issue Nov 20, 2020 · 1 comment
Open

运动畸变的小问题 #18

yumingdong opened this issue Nov 20, 2020 · 1 comment

Comments

@yumingdong
Copy link

yumingdong commented Nov 20, 2020

在models/scan_adjust/distortion_adjust.cpp中有下面的代码片段:

    float start_orientation = atan2(origin_cloud_ptr->points[0].y, origin_cloud_ptr->points[0].x);
    Eigen::AngleAxisf t_V(start_orientation, Eigen::Vector3f::UnitZ());
    Eigen::Matrix3f rotate_matrix = t_V.matrix();
    Eigen::Matrix4f transform_matrix = Eigen::Matrix4f::Identity();
    transform_matrix.block<3,3>(0,0) = rotate_matrix.inverse();
    pcl::transformPointCloud(*origin_cloud_ptr, *origin_cloud_ptr, transform_matrix);
    velocity_ = rotate_matrix * velocity_;
    angular_rate_ = rotate_matrix * angular_rate_;

这里对原始点云绕Z轴旋转start_orientation的角度不是很理解,而且角速度和线速度都有这样的操作。知乎上面也没有给出相应的解释,谢谢分享。

@h-k8888
Copy link

h-k8888 commented Apr 15, 2021

作者自己说过,因为kitti里用的velodyne采集数据的时候不是每次都从0度开始,所以起始方向计算了一个夹角,并且把0度附近的点云舍弃掉,然后通过姿态和速度对点云做补偿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants