https://github.com/pavel-kirienko/udral-pnp-poc
Proof-of-concept implementation of the automatic port-ID allocation for UDRAL
https://github.com/pavel-kirienko/udral-pnp-poc
Last synced: about 2 months ago
JSON representation
Proof-of-concept implementation of the automatic port-ID allocation for UDRAL
- Host: GitHub
- URL: https://github.com/pavel-kirienko/udral-pnp-poc
- Owner: pavel-kirienko
- License: mit
- Created: 2021-06-17T13:30:23.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-12T18:25:35.000Z (over 3 years ago)
- Last Synced: 2025-02-10T21:19:36.787Z (4 months ago)
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UDRAL PnP proof-of-concept
Proof-of-concept implementation of the automatic port-ID allocation for UDRAL.
This demo is based on PyUAVCAN; read the docs here: https://pyuavcan.readthedocs.io/en/stable/pages/demo.html
## Running
Before running the demo, you need to compile DSDL as follows:
```bash
yakut compile -O . https://github.com/UAVCAN/public_regulated_data_types/archive/master.zip \
https://github.com/Zubax/zubax_dsdl/archive/master.zip
```When running this script for the first time, export the transport configuration via env vars.
If you are using UAVCAN/CAN via virtual SocketCAN:```bash
export UAVCAN__CAN__IFACE="socketcan:vcan0"
export UAVCAN__NODE__ID=1
```Afterward you can omit the environment variables because the configuration is stored in the "*.db" file.
Then run the script: `./udral_pnp.py`.
You can use these demos to test the script: https://github.com/UAVCAN/demos