https://github.com/advrhumanoids/esi_to_cpp
Generate SDO definition in C++ from ESI XML file
https://github.com/advrhumanoids/esi_to_cpp
Last synced: 2 months ago
JSON representation
Generate SDO definition in C++ from ESI XML file
- Host: GitHub
- URL: https://github.com/advrhumanoids/esi_to_cpp
- Owner: ADVRHumanoids
- Created: 2025-07-09T10:22:10.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-07-09T13:25:56.000Z (11 months ago)
- Last Synced: 2025-09-09T00:24:25.630Z (9 months ago)
- Language: Python
- Size: 181 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# esi_to_cpp
Generate SDO as C++ nested ``struct`` from EtherCAT ESI file.
```bash
python3 esi_xml_to_json.py esi.xml # produces esi.xml.json (intermediate JSON representation of the ESI file)
python3 esi_json_codegen.py esi.xml.json esi.h # generate header with sdo struct definition
python3 esi_json_codegen_objd.py esi.xml.json esi.h # add the "objd" struct to the header file
```
## Example (Synapticon CIRCULO, Novanta EVEREST XCR)
```bash
bash example/generate.bash
```