- 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]
- start with: "docker-compose -f docker-compose.yml up -d --no-deps --build" will be hosted under: "http://localhost:5000/codegen/swagger-ui.html"
- start ROBxTASK Frontend Service (Staging: https://github.com/ROBxTASK/frontend-service) next by using: "npm run start"
- Use local account to login and press Buttons for Code Generation
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 codegen_main.py ../input/ROS/example_2.xml ../output/generated_results/ false
Example usage in console for OPCUA file generation:
python codegen_main.py ../input/OPCUA/example_1.xml ../output/generated_results/ true
Example "launch.json" file for debuuging with visual code / visual studio:
{
"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"]
}
]
}