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

Interface to get pointcloud from SDF #2704

Open
MA-Wenhui opened this issue Dec 16, 2024 · 1 comment
Open

Interface to get pointcloud from SDF #2704

MA-Wenhui opened this issue Dec 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@MA-Wenhui
Copy link

Desired behavior

Need an interface to get the world's all collisions and generate the 3d map(pointcloud).

Alternatives considered

I tried to parse sdf file to extract dae/stl/geometry, but it was too complicated since the sdf structures vary.

Implementation suggestion

There is a RayQuery based solution for gazebo-classic:

https://github.com/[arshadlab/gazebo_map_creator](https://github.com/arshadlab/gazebo_map_creator)

I didn't find the equivalent class for this usage in gz harmonic.

Additional context

@MA-Wenhui MA-Wenhui added the enhancement New feature or request label Dec 16, 2024
@arjo129
Copy link
Contributor

arjo129 commented Dec 19, 2024

I don't know if this should be a core part of gazebo. The buoyancy plugin for instance takes the collision mesh and iterates through the individual meshes.

It would be better to expose an easy to use RayQuery API since this is something that is relatively fundamental to a lot of robotics software.

For your use case of exporting a map I could totally see a way of hacking together a 2d lidar sensor and setting its pose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Inbox
Development

No branches or pull requests

2 participants