> For the complete documentation index, see [llms.txt](https://directdrivetech.gitbook.io/development-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://directdrivetech.gitbook.io/development-manual/software-api/power-supply-system-api.md).

# Power Supply System API

The API of the power supply system can only perform query actions on information data such as battery information.

### Check the information of the left battery.

**Function Overview：**&#x53;ubscribe to the ***Topic*** for feedback on the left battery information.

**Topic：**`system/batteries/left`

**Msg Type：**`tita_system_msgs/msg/BatterieStates`

**Code Example：**`ros2 topic echo /[namespace]/system/batteries/left`

### Check the information of the right battery

**Function Overview：**&#x53;ubscribe to the ***Topic*** for feedback on the right battery information.

**Topic：**`system/batteries/right`

**Msg Type：**`tita_system_msgs/msg/BatterieStates`

**Code Example：**`ros2 topic echo /[namespace]/system/batteries/right`

### Check the information of the supercapacitor

**Function Overview：**&#x53;ubscribe to the ***Topic*** for feedback on supercapacitor information.

**Topic：**`system/batteries/super`

**Msg Type：**`tita_system_msgs/msg/BatterieStates`

**Code Example：**`ros2 topic echo /[namespace]/system/batteries/super`

### Check the power supply statistics information

**Function Overview：**&#x53;ubscribe to the ***Topic*** for feedback on power supply statistics information.

**Topic：**`system/power_supply/info`

**Msg Type：**`tita_system_msgs/msg/PowerSupplyInfo`

**Code Example：**`ros2 topic echo /[namespace]/system/power_supply/info`

{% hint style="info" %}
Enable the power data upload feature by modifying the file /usr/share/power\_bridges/conf/tita\_power.toml, set record\_battery\_info=1 (#0 to disable, 1 to enable).
{% endhint %}
