https://github.com/iot-salzburg/rxt_codegen
Generates Python Action Clients for ROBxTASK control from Blockly XML files
https://github.com/iot-salzburg/rxt_codegen
Last synced: about 1 month ago
JSON representation
Generates Python Action Clients for ROBxTASK control from Blockly XML files
- Host: GitHub
- URL: https://github.com/iot-salzburg/rxt_codegen
- Owner: iot-salzburg
- Created: 2022-01-18T19:41:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-19T13:50:07.000Z (about 3 years ago)
- Last Synced: 2023-09-13T09:29:28.514Z (over 1 year ago)
- Language: Python
- Size: 4.5 MB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rxt_codegen
- Generates Python Action Clients for ROBxTASK control from Blockly XML files
- Generates OPCUA Simulator Client for ROBxTASK simulation environment
- Call this program with three API arguments: [inputFile][outputFile][bIsSimulatedEnv]## CodeGen as a Server Implementation
1) start with: "docker-compose -f docker-compose.yml up -d --no-deps --build"
will be hosted under: "http://localhost:5000/codegen/swagger-ui.html"
2) start ROBxTASK Frontend Service (Staging: https://github.com/ROBxTASK/frontend-service) next by using: "npm run start"
3) Use local account to login and press Buttons for Code Generation## CodeGen as a standalone application
For directories of files please use input folder for input files and output folder for output files.Example usage in console for ROS file generation:
```python
python codegen_main.py ../input/ROS/example_2.xml ../output/generated_results/ false
```Example usage in console for OPCUA file generation:
```python
python codegen_main.py ../input/OPCUA/example_1.xml ../output/generated_results/ true
```Example "launch.json" file for debuuging with visual code / visual studio:
```python
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "./server/source/codegen_main.py",
"console": "integratedTerminal",
"args": ["./server/input/ROS/example_2.xml", "./server/output/generated_results/", "false"]
}
]
}
```