# Read BatteryStatus through ROS 2 bridge

**URL:** <https://discuss.px4.io/t/read-batterystatus-through-ros-2-bridge/32136>\
**Category:** ROS 1 / ROS 2\
**Created:** [May 9, 2023, 2:11pm UTC](https://discuss.px4.io/t/read-batterystatus-through-ros-2-bridge/32136 "2023-05-09T14:11:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SemvdH](https://discuss.px4.io/user_avatar/discuss.px4.io/semvdh/32/12843_2.png) [@SemvdH](https://discuss.px4.io/u/SemvdH)\
**Post date:** [May 9, 2023, 2:11pm UTC](https://discuss.px4.io/t/read-batterystatus-through-ros-2-bridge/32136/1 "2023-05-09T14:11:07Z")

</div>

Hello!

I’m building a drone using the Pixhawk 4 Mini (v1.14.0 beta2) and a Raspberry Pi running ROS 2 Foxy. I managed to get it working after the very good help on my [last post](https://discuss.px4.io/t/cannot-arm-drone-with-companion-computer-arming-denied-manual-control-lost/31565).

I am currently developing the ROS nodes for other sensors and controlling the drone further, but I came across an issue that there was no battery status published. I didn’t see any battery information in the topics published by the ROS 2 bridge. I would like to be able to receive the [BatteryStatus](https://docs.px4.io/main/en/msg_docs/BatteryStatus.html) uORB topic messages, but I cannot find how to include this in the published topics from the Pixhawk. Does anybody know what I need to do to be able to receive these messages?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![SemvdH](https://discuss.px4.io/user_avatar/discuss.px4.io/semvdh/32/12843_2.png) [@SemvdH](https://discuss.px4.io/u/SemvdH)\
**Post date:** [May 9, 2023, 2:35pm UTC](https://discuss.px4.io/t/read-batterystatus-through-ros-2-bridge/32136/2 "2023-05-09T14:35:19Z")

</div>

I have found the [dds-topics.yaml](https://docs.px4.io/main/en/middleware/uxrce_dds.html#dds-topics-yaml) reference and know I need to add a message definition through this, but it’s unclear to me how I need to do this and how I can then incorporate this into the Pixhawk.

---

<div class="post-metadata">

**Author:** ![Benja](https://discuss.px4.io/user_avatar/discuss.px4.io/benja/32/11872_2.png) [@Benja](https://discuss.px4.io/u/Benja)\
**Post date:** [May 9, 2023, 4:01pm UTC](https://discuss.px4.io/t/read-batterystatus-through-ros-2-bridge/32136/3 "2023-05-09T16:01:21Z")

</div>

The documentation is available here: [ROS 2 User Guide | PX4 User Guide](https://docs.px4.io/main/en/ros/ros2_comm.html#custom-uorb-topics)

Once you compiled PX4 with the new set of topics in the bridge you have to flash the new custom firmware in your board.

oh, please note that the documentation is synchronized with the `main` branch, and the `microdds_client` module has been renamed.
