How can I use a .URDF sensor on a .SDF robot on ROS and Gazebo?
Hi, maybe it's a silly question but I am a beginner.
I have a Firmware of a flight controller called PX4, here it is: https://github.com/PX4/PX4-Autopilot That Firmware contains SITL Gazebo tools so I can simulate in gazebo some models which are included in the Firmware in .sdf format and control them with other ros node. They are in Firmware/Tools/sitl_gazebo/models.
I also have a laser sensor which is a Teraranger Tower Evo, which is a laser sensor and has a description for Gazebo in .URDF and .XACRO, here it is: https://github.com/Terabee/teraranger...
So, the idea is to join the sensor to one of those robots but I can't find how to do it. Even I am not able to spawn the sensor in gazebo as standalone model or read data from it (I think it is because I am not spawning it correctly). I did a launcher to spawn a urdf model, it is added to gazebo but not the mesh and it does not do anything.
What occurred to me is to add laser sensors that behave as similar as possible to the one I want to use, but that would be in case I can't add the original one.
Thank you very much!
That github repo provides example urdf for 1 range-finder sensor, multiple-range-finders, and a "robot" with the sensors mounted. It seems like you should spend some time learning about urdf, joints and links. Here is one tutorial: urdf_tutorial_link