feat: 处理机械臂运动速度

This commit is contained in:
zhanghao 2026-08-05 11:53:00 +08:00
parent b2593bf857
commit b37785b0a2
3 changed files with 6 additions and 5 deletions

View File

@ -349,8 +349,8 @@ function handler(params) {
{ name: "rx", type: "input", input: "", disabled: true },
{ name: "ry", type: "input", input: "", disabled: true },
{ name: "rz", type: "input", input: "", disabled: true },
{ name: "velocity", type: "input", componentType: 'number', max: 5, step: 0.1, input: 0, disabled: true },
{ name: "acceleration", type: "input", componentType: 'number', max: 5, step: 0.1, input: 0, disabled: true },
{ name: "velocity", type: "input", componentType: 'number', max: 5, step: 0.01, input: 0.1, disabled: true },
{ name: "acceleration", type: "input", componentType: 'number', max: 5, step: 0.01, input: 0.2, disabled: true },
],
outputType: 'json'
},
@ -364,8 +364,8 @@ function handler(params) {
nodeParams: [
{ name: "deviceId", type: "input", input: "", disabled: true },
{ name: "target", type: "input", input: "[0, 0, 0, 0, 0, 0]", disabled: true },
{ name: "velocity", type: "input", componentType: 'number', max: 5, step: 0.1, input: 0.5, disabled: true },
{ name: "acceleration", type: "input", componentType: 'number', max: 5, step: 0.1, input: 1, disabled: true },
{ name: "velocity", type: "input", componentType: 'number', max: 5, step: 0.01, input: 0.1, disabled: true },
{ name: "acceleration", type: "input", componentType: 'number', max: 5, step: 0.01, input: 0.2, disabled: true },
],
outputType: 'json'
},

View File

@ -179,6 +179,7 @@ onMounted(() => {
.robot-container {
max-height: 50%;
overflow: hidden;
overflow-y: auto;
.robot-state {

View File

@ -69,7 +69,7 @@
<el-table-column label="类型" prop="robotType" width="120">
<template #default="{ row }">{{ robotTypeLabel(row.robotType) }}</template>
</el-table-column>
<el-table-column label="操作" width="180" fixed="right">
<el-table-column label="操作" width="220" fixed="right">
<template #default="{ row }">
<el-button link type="primary" icon="View" :disabled="!row.robotId" @click="openDevices(row)">设备</el-button>
<el-button link type="primary" icon="Edit" @click="handleUpdate(row)">编辑</el-button>