rotors_simulator icon indicating copy to clipboard operation
rotors_simulator copied to clipboard

How to attach Lidar on the model of FireFly

Open taminhtoan2601 opened this issue 4 years ago • 2 comments

Hello all,

I am newbie to Gazebo and ROS. Now, I want to attach Lidar sensor to the model Firefly to get data in order to control the firefly. With the simple models I created, I can attach it easily but with the ros_simulator package I downloaded I don't know where the file urdf in the package and in that file urdf where I can add the commands to attach it. How can I do it? Could you explain me little detail? Thank you very much for helping me!

Have a good day ahead!

taminhtoan2601 avatar Oct 14 '20 07:10 taminhtoan2601

You need to go to rotors_description file, add the xacro file of the sensor you want to use. Then open "firefly_base.xacro" and include your xacro sensor file and then your sensor. The built-in sensors are found in "component_snippets.xacro" if you wish to see an example.

hmf97 avatar Nov 09 '20 03:11 hmf97

Hello, should I also add a urdf file while doing all this? Will only firefly.xacro and firefly_base.xacro files be changed?

talhamagat avatar Feb 07 '24 11:02 talhamagat