# How to Read Distance Sensor Data from MAVROS Topic

**URL:** <https://discuss.px4.io/t/how-to-read-distance-sensor-data-from-mavros-topic/21944>\
**Category:** ROS 1 / ROS 2\
**Created:** [April 15, 2021, 11:17am UTC](https://discuss.px4.io/t/how-to-read-distance-sensor-data-from-mavros-topic/21944 "2021-04-15T11:17:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfurkannargul](https://discuss.px4.io/user_avatar/discuss.px4.io/mfurkannargul/32/8075_2.png) [@mfurkannargul](https://discuss.px4.io/u/mfurkannargul)\
**Post date:** [April 15, 2021, 11:17am UTC](https://discuss.px4.io/t/how-to-read-distance-sensor-data-from-mavros-topic/21944/1 "2021-04-15T11:17:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mfurkannargul](https://discuss.px4.io/user_avatar/discuss.px4.io/mfurkannargul/32/8075_2.png) [@mfurkannargul](https://discuss.px4.io/u/mfurkannargul)\
**Post date:** [April 15, 2021, 1:52pm UTC](https://discuss.px4.io/t/how-to-read-distance-sensor-data-from-mavros-topic/21944/2 "2021-04-15T13:52:23Z")

</div>

The reason is that I should have commented the lines of “distance sensors” and “range finders” on px4\_plugginlists.yaml . The document is supposed to be as below:

plugin\_blacklist:  
#common  
-safety\_area  
#extras  
-image\_pub  
-vibration  
#- distance\_sensor  
#- rangefinder  
-wheel\_odometry

plugin\_whitelist: []  
#- ‘sys\_\*’

---

<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, 5:06am UTC](https://discuss.px4.io/t/how-to-read-distance-sensor-data-from-mavros-topic/21944/3 "2022-12-20T05:06:21Z")

</div>

Small typo error.  
The file name is  
**px4\_pluginlists.yaml**

in the mavros/mavros/launch

 ![image](https://discuss.px4.io/uploads/default/original/2X/1/1dc9375160f91352c23926526bf302f7af045da9.png)

 ![image](https://discuss.px4.io/uploads/default/original/2X/0/0e56ddd9e2b1cb674c93e7e04e2af1432d2a1f38.png)
