Comments (4)
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.
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.
I think the best way to go might be using Bonxai's voxel maps, which are integrated in MRPT thru:
See these examples:
- https://docs.mrpt.org/reference/latest/page_maps_voxelmap_simple.html
- https://docs.mrpt.org/reference/latest/page_maps_voxelmap_from_tum_dataset.html
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.
Thanks for the suggestions, I'll try to use the CVoxelMap, CVoxelMapRGB and COctoMapVoxels. I'll update after trying.
from mrpt.
Related Issues (20)
- Incorrect license and copyright for CSparse HOT 1
- [Help, please] Problems building source code on Windows HOT 3
- There might be a little mistake in CICP::ICP_Method_LM HOT 1
- Provide example of 2D lidar reprojection (Malaga Urban dataset) HOT 1
- New variance field for the Range message HOT 8
- How to build it with visual studio 2022 on windows11 HOT 1
- Source packages release do not contain submodules HOT 2
- pymrpt broken in ros-noetic-mrpt2 in 2.9.0 HOT 5
- Provide python wrapper for ros1bridge & ros2bridge HOT 2
- FTBFS on Ubuntu Focal HOT 1
- CPose3DPDFGaussian composition broken in Python HOT 1
- ros-noetic-mrpt2 dependencies HOT 1
- Does not build with an opencv where patch level > 15 HOT 1
- Test cases OpenGL.CFBORender_camera_intrinsics/fov failed on riscv64 HOT 3
- gimbal lock condition computing jacobian from quaternion to rpy HOT 1
- error: ‘cvEndFindContours’ was not declared in this scope HOT 1
- mrpt fails to build on 32bit architectures with 64bit time_t type HOT 4
- Consider adding zstd as default compression method
- Investigate possible bug in nn_radius_search()
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mrpt.