* Add NodePath to operations * Change to use nodePath to get pathToNode instead of sourceRange * Add additional node path unit test * Update output * Fix import statement NodePaths * Update output * Factor into function
87 lines
1.4 KiB
Plaintext
87 lines
1.4 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Operations executed multi-axis-robot.kcl
|
|
---
|
|
[
|
|
{
|
|
"type": "GroupBegin",
|
|
"group": {
|
|
"type": "ModuleInstance",
|
|
"name": "robot-arm-base.kcl",
|
|
"moduleId": 0
|
|
},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 0
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "GroupBegin",
|
|
"group": {
|
|
"type": "ModuleInstance",
|
|
"name": "robot-rotating-base.kcl",
|
|
"moduleId": 0
|
|
},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 1
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "GroupBegin",
|
|
"group": {
|
|
"type": "ModuleInstance",
|
|
"name": "robot-arm-j2.kcl",
|
|
"moduleId": 0
|
|
},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 2
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "GroupBegin",
|
|
"group": {
|
|
"type": "ModuleInstance",
|
|
"name": "robot-arm-j3.kcl",
|
|
"moduleId": 0
|
|
},
|
|
"nodePath": {
|
|
"steps": [
|
|
{
|
|
"type": "ProgramBodyItem",
|
|
"index": 3
|
|
}
|
|
]
|
|
},
|
|
"sourceRange": []
|
|
},
|
|
{
|
|
"type": "GroupEnd"
|
|
},
|
|
{
|
|
"type": "GroupEnd"
|
|
},
|
|
{
|
|
"type": "GroupEnd"
|
|
},
|
|
{
|
|
"type": "GroupEnd"
|
|
}
|
|
]
|