huashu996 / lidar_fusion_ws

This is a basic fuction bag for lidar point cloud.
10 stars 1 forks source link

point_cluster功能包有一处代码的逻辑有小问题 #2

Open LightFloatCloud opened 11 months ago

LightFloatCloud commented 11 months ago

在 points_cluster_core.cpp 里的 computeBoundingBoxByOrientation() 函数, 应把

    float dd3 = xp3 * xp3 + yp3 + yp3;
    float dd4 = xp4 * xp4 + yp4 + yp4;

改为

    float dd3 = xp3 * xp3 + yp3 * yp3;
    float dd4 = xp4 * xp4 + yp4 * yp4;

虽然我看不懂这段程序的逻辑……不过这个显而易见的bug倒是能分辨了