# Add distance sensor to drone model in gazebo

**URL:** <https://discuss.px4.io/t/add-distance-sensor-to-drone-model-in-gazebo/28936>\
**Category:** ROS 1 / ROS 2\
**Created:** [September 6, 2022, 3:54pm UTC](https://discuss.px4.io/t/add-distance-sensor-to-drone-model-in-gazebo/28936 "2022-09-06T15:54:00Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![AlexWUrobot](https://discuss.px4.io/user_avatar/discuss.px4.io/alexwurobot/32/11387_2.png) [@AlexWUrobot](https://discuss.px4.io/u/AlexWUrobot)\
**Post date:** [December 20, 2022, 4:42am UTC](https://discuss.px4.io/t/add-distance-sensor-to-drone-model-in-gazebo/28936/6 "2022-12-20T04:42:57Z")

</div>

I find the solution, you need to edit “distance sensors” and “range finders” on px4\_pluginlists.yaml

> [@How to Read Distance Sensor Data from MAVROS Topic](https://discuss.px4.io/t/how-to-read-distance-sensor-data-from-mavros-topic/21944):
>
> Hey everyone, I want to receive distance data from Maxbotix sensors over a MAVROS topic named “/mavros/distance\_sensor/…”. Even if I can read distance data as DISTANCE\_SENSOR from MAVLink Inspector on QGroundControl, I couldn’t see its MAVROS topic on the terminal when I type the command “rostopic list”. How can I solve this issue? Thank you.

---

_[View the full topic](https://discuss.px4.io/t/add-distance-sensor-to-drone-model-in-gazebo/28936)._
