Add lidar on X500

Hello, I am planning to use Gazebo Garden to perform a ROS2 simulation with a 3D lidar on the X500 model.
I have search some documentation about it, but I can not find any example about how to add the new sensor on the X500 sdf file.
There is any example about it?
Plus I have found only the lidar with GPU, on Gazebo 11 is was possible to choose between the two types. Is possible to use it without any GPU? It can work with ATI or Intel GPU or it need an NVIDEA?

Hey, you can go through the above link to check how to add lidar to x500, I have been also trying the same.

Which version of Gazebo are you using?
The links you sent me refer to Gazebo-Classic, not to the new Gazebo(Gz)

I have also the same setup, you can convert the files as per the gz needs.

In case you did not succeed, I work with a simulation in Gazebo Garden with a X500 + lidar. I do not masterize the techno, but if it can help (I left my comments) :

<?xml version='1.0'?>
<sdf version="1.10">
  <model name="x500_lidar"> <!-- with this the drone is right under the ground, without it is a little under the ground -->
    <include merge="true">  <!-- merge=true is necessary to make PX4 preflight check pass -->
    <!--add lidar-->
    <include merge="true">

    <joint name="lidar_joint" type="fixed">
      <!-- without 'include merge', a new element lidar_sensor is created.
          It leads to publish /pose twice, once with the world name, and the other with the drone name.
          This make mess in the frame_id.


And the lidar_sensor.sdf

<?xml version='1.0'?>
<sdf version="1.10">
  <model name="lidar_sensor">
    <link name="lidar_link">
      <!-- pose, collision, etc. -->
      <sensor name='gpu_lidar' type='gpu_lidar'>
        <!-- lidar conf -->
1 Like

Hi @SebastienL , thank you for sharing your sdf.
Are you running your simulation on a PC mounting a GPU? Actually I am working on an Intel NUC that have only the integrated.

Did you manage to add a gimball and a camera also?

Yes, I have a GeForce. I did not use a camera yet, it is scheduled for 2024 (without a gimball).