Giter Site home page Giter Site logo

Comments (4)

jlblancoc avatar jlblancoc commented on June 15, 2024

Hi,
You mean a 2D planar lidar or a 3D lidar?

Your goal is to use one particular lidar scan (fixed data) to ray trace the cells that are visible, right? Or do you want to simulate that lidar data? (I guess it's the former since you're using mvsim but just to confirm)

from mrpt.

omerfarukadastec avatar omerfarukadastec commented on June 15, 2024

Hi,

I'm trying to do it using 3D lidar. My goal is to color all visible cells using ray tracing or another method according to the pointcloud data received by MVSim. In addition, my goal is to perform this process with multiple lidars, for example, to visualize how many lidars any A cell can be seen by. To give an example, if cell A is seen by 2 different lidars, it is blue; if it sees 3, it is yellow; if it sees 4, it is orange.

At this point, yes, I'm basically trying to do ray tracing, but not through a single lidar scan. For example, when the position of the lidar changes on MVSim, my goal is to be able to see the result again. However, if this is not possible, I can also go through a single scan. I am trying to fully learn the opportunities that MRPT and MVSim offer me in this regard.

from mrpt.

jlblancoc avatar jlblancoc commented on June 15, 2024

I think the best way to go might be using Bonxai's voxel maps, which are integrated in MRPT thru:

See these examples:

With that (using the standard insertObservation() API call to insert the 3D point cloud in the voxel map), you should be able to see observed cells by each 3D scan.

Now, counting them and coloring in a custom way is another story. You could create a mrpt::opengl::COctoMapVoxels and manually add the voxels with the color you want for each one, by going over all the bonxai's voxel map cells with the provided visitor methods to which you can pass a C++ lambda.

from mrpt.

omerfarukadastec avatar omerfarukadastec commented on June 15, 2024

Thanks for the suggestions, I'll try to use the CVoxelMap, CVoxelMapRGB and COctoMapVoxels. I'll update after trying.

from mrpt.

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.