https://github.com/brean/store_battery
Small ROS2 script that lets your robot rotate on the spot until the battery is below a certain level
https://github.com/brean/store_battery
Last synced: 24 days ago
JSON representation
Small ROS2 script that lets your robot rotate on the spot until the battery is below a certain level
- Host: GitHub
- URL: https://github.com/brean/store_battery
- Owner: brean
- Created: 2023-08-10T11:23:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-21T13:57:53.000Z (7 months ago)
- Last Synced: 2025-03-21T14:35:43.585Z (7 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Store Battery
Small ROS2 script that lets your robot rotate on the spot until the battery is below a certain level.
You can then use the storage program of your charger to balance and store your batteries.
## WARNING
This uses the velocity command of your robot/the motors to discharge the batteries faster!Once the wheels stop turning the battery should be at storage level, shut down the robot then.
# Installation
copy/clone this folder into your colcon-workspace `src/`-folder and run:```bash
cd ~/ros_ws/src/
git clone git@github.com:brean/store_battery.git
cd ~/ros_ws
colcon build
```and re-source your environment:
```bash
source install/setup.bash
```# Run
```bash
ROS_DOMAIN_ID=31 ros2 run store_battery lower_voltage
```