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?
- https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwiHyu_M3MKCAxXdTWwGHbR8C6YQFnoECBEQAQ&url=https%3A%2F%2Fwilselby.com%2F2019%2F05%2Fsimulating-an-ouster-os-1-lidar-sensor-in-ros-gazebo-and-rviz%2F&usg=AOvVaw0na15tPBk4AiftwgJXFczK&opi=89978449
- GitHub - Gepetto/ouster-gazebo-simulation: Mirror of https://gepgitlab.laas.fr/gepetto/ouster-gazebo-simulation
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 -->
<uri>model://x500</uri>
<!--add lidar-->
<include merge="true">
<uri>model://models/lidar_sensor.sdf</uri>
</include>
<joint name="lidar_joint" type="fixed">
<parent>base_link</parent>
<!-- 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.
-->
<child>lidar_link</child>
</joint>
</model>
</sdf>
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 -->
</sensor>
</link>
</model>
</sdf>
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).