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

Build my own Lidar Sensor with custom scanning shape #2645

Open
nnln-lno opened this issue Oct 10, 2024 · 3 comments
Open

Build my own Lidar Sensor with custom scanning shape #2645

nnln-lno opened this issue Oct 10, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@nnln-lno
Copy link

Hi,

I don't have enough knowledge about rendering, modeling, etc..
But I tried my best to understand how gz sim Lidar emits ray from source code (e.g : Orge2GpuRays.cc, GpuRays.cc ..) and change some values to see what happens in the simulation.

As I understand, In this function (https://github.com/gazebosim/gzrendering/blob/c2e72ee51a7e4dba5156faa96c972c63ca5ab437/ogre2/src/Ogre2GpuRays.cc#L827-L950), gz makes 'cubeUVTexture' using LiDAR spec in sdf parameter and mapping each direction vector to cube object.

After I changed the value such as cubeUVTexture width and height, LiDAR ray showed a weird value than I expected.

Is there are instructions for creating custom ray shapes or understanding GpuRays ??

Thank you.

@nnln-lno nnln-lno added the enhancement New feature or request label Oct 10, 2024
@iche033
Copy link
Contributor

iche033 commented Oct 10, 2024

After I changed the value such as cubeUVTexture width and height, LiDAR ray showed a weird value than I expected.

We don't have documentation for creating custom ray shapes. Maybe you can describe what's the custom shape you're trying to create and we can see if it's possible to achieve it by making changes to that function

@nnln-lno
Copy link
Author

After I changed the value such as cubeUVTexture width and height, LiDAR ray showed a weird value than I expected.

We don't have documentation for creating custom ray shapes. Maybe you can describe what's the custom shape you're trying to create and we can see if it's possible to achieve it by making changes to that function

@iche033 Thank you for reply my issue.

Currently, I want to make Livox Avia non-repetitive shape scan pattern with rotation each 0.1s

But In rendering perspective, I think, It sounds really hard ...

Nevertheless, thank you for doing your best in development.

@iche033
Copy link
Contributor

iche033 commented Oct 14, 2024

sounds like #1958. My answer would be the same as the comment: #1958 (comment). Someone also posted in that issue another GPU based lidar implementation that you can check out.

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