Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pollen-robotics/flashing_tools
https://github.com/pollen-robotics/flashing_tools
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/pollen-robotics/flashing_tools
- Owner: pollen-robotics
- Created: 2022-01-22T10:18:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-04T12:14:14.000Z (over 1 year ago)
- Last Synced: 2024-11-06T08:12:39.027Z (3 months ago)
- Language: Python
- Size: 185 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flashing_tools
Graphical windows to configure the motors and electronic modules of a Reachy 2021.
## How to install
1. clone this repo
```bash
git clone https://github.com/pollen-robotics/flashing_tools.git
```
2. install the required depencies
```bash
cd flashing_tools
pip3 install -e .
```
3. install dfu-util if it isn't already the case
```bash
sudo apt-get install -y dfu-util
```## How to use
* For the flashing motor GUI:
```python
cd flasing_tools
python3 flash_motor.py
```Select what motor you want to flash and click on "Configure", a progress bar should fill. If the message "Motor configured" appears, you can disconnect the motor.
* For the flashing electronic module GUI:
```python
cd flasing_tools
python3 flash_module.py
```Select what type of board the electronic module is and click on "Configure". If the message "Configuration succedded" appears, you can disconnect the board.
## Configuring bash files
If you want to make bash files executing the python scripts:* for the flashing motor script, put in a .sh file:
```bash
#!/bin/bash
your_python_path path_to_flashing_tools/flash_motor.py
```* for the flashing electronic module script, put in a .sh file:
```bash
#!/bin/bash
your_python_path path_to_flashing_tools/flash_module.py
```## Creating desktop icons (in Ubuntu)
1. Make the bash script executable
```bash
sudo chmod +x your_bash_script.sh
```2. In Ubuntu files explorer (Nautilus), in the top right icon with three strips click on "Preferences" -> "Behavior" -> "Executable text files" -> "Run them".
3. Move the .sh file in Desktop.