Giter Site home page Giter Site logo

Comments (3)

VincentCheungM avatar VincentCheungM commented on September 13, 2024 1

Maybe round is enough.

from run_based_segmentation.

VincentCheungM avatar VincentCheungM commented on September 13, 2024

Yes, it's mainly due to the process in here.

    // Organize Pointcloud in scanline
    SLRPointXYZIRL point;
    for(int i=0;i<laserCloudIn.points.size();i++){
        point.x = laserCloudIn.points[i].x;
        point.y = laserCloudIn.points[i].y;
        point.z = laserCloudIn.points[i].z;
        point.intensity = laserCloudIn.points[i].intensity;
        point.ring = laserCloudIn.points[i].ring;
        point.label = 0u;// 0 means uncluster

        if(point.ring<=sensor_model_&&point.ring>=0){
            laserCloudScans_[point.ring]->push_back(point);
        }    
    }

It's re-organizing the points within point cloud to the correspond scan line. The ring is the scan line index of the points, which can be achieved with the help of Velodyne drive. However, the binary point cloud files from KITTI don't provide the ring property, and it goes wrong. So you can calculate the ring by your self or using other point cloud files.
The ring can be calculated in this formula(latex code):

$$ring =\arcsin{\frac{z}{\sqrt{x^2+y^2+z^2}}}$ $

from run_based_segmentation.

lykhahaha avatar lykhahaha commented on September 13, 2024

Thank you for your help.I also think the reason for the failure of clustering is because of the lack of rings.
The result of this formula is angle(float), but the value of rings should be 0 to 63 (int). How should I convert?

from run_based_segmentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.