Skip to content

Generates Python Action Clients for ROBxTASK control from Blockly XML files

Notifications You must be signed in to change notification settings

iot-salzburg/rxt_codegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 

Repository files navigation

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 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"]
        }
    ]
}

About

Generates Python Action Clients for ROBxTASK control from Blockly XML files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages