Skip to content

Build my own Lidar Sensor with custom scanning shape #2645

@nnln-lno

Description

@nnln-lno

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions