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

Mesh generation #144

Open
jinn9403 opened this issue Nov 12, 2024 · 1 comment
Open

Mesh generation #144

jinn9403 opened this issue Nov 12, 2024 · 1 comment

Comments

@jinn9403
Copy link

Hi, thanks for your work. I have a question while running mapping api.

I read that the mesh is generated on dense reconstruction. Is there a condition to get the mesh data in real time? Does it only work under replay conditions, or do I need to set other conditions for it to work?

@kaatrasa
Copy link
Member

Hey,

The mesh generation works in real-time (runs asynchronously in the background). If meshing parameters are enabled, then you can get the mesh from our Mapping API on all devices (OAK-D, Realsense, Azure Kinect, Orbbec Femto Mega/Femto Bolt/ Astra2). The mesh quality depends on the sensor (e.g. Azure Kinect and Orbbec Femto devices produce much nicer looking mesh than OAK-D).

If you have an OAK-D device you can try our mapping_ar.py example that visualizes the mesh in real-time. For other devices, we don't currently have examples that visualize the mesh in real-time, but you can try mapping_ar.py or the sai-cli process commandline tool in replay mode.

If you wish to enable mesh reconstruction in your own project, then you should copy the config from mapping_ar.py:

configInternal["useSlam"] = "true"  
configInternal["computeStereoPointCloud"] = "true"
configInternal["pointCloudNormalsEnabled"] = "true"
configInternal["computeDenseStereoDepthKeyFramesOnly"] = "true"
configInternal["recEnabled"] = "true"
configInternal["recCellSize"] = "0.02"   
# configInternal['recMeshSavePath'] = "path/to/mesh.obj" # Uncomment to serialize mesh to disk
# configInternal['recTexturize'] = "true" # Uncomment to generate mesh textures

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