ROS package that uses python-daly-bms driver data to read information from Daly BMS devices and publishes it using robotnik_msgs/BatteryStatus message type.
sudo apt install python3-rospkg-modules
Install python-daly-bms driver by following the instructions provided in the README.md file. This is a python library independent from ROS, so there is no need to install it in the catkin workspace.
git clone https://github.com/RobotnikAutomation/daly_bms.git
catkin build daly_bms
For serial connections:
pip3 install pyserial
- port (String, /dev/ttyUSB_BMS): Serial port of the device
This package includes an udev rule to find the USB device using its model and vendor identifiers. This is useful to bind the device to a specific port, independently of the actual physical port where the device is plugged. To add this udev rule to your system, just copy it into your /etc/udev/rules.d directory.