调整机械臂的速度
This commit is contained in:
@@ -344,7 +344,7 @@ createApp({
|
|||||||
const res = await fetch(API + '/api/arm/set_angles', {
|
const res = await fetch(API + '/api/arm/set_angles', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
body: JSON.stringify({ angles: pose.arm_angles, speed: 50 })
|
body: JSON.stringify({ angles: pose.arm_angles, speed: 500 })
|
||||||
})
|
})
|
||||||
const data = await res.json()
|
const data = await res.json()
|
||||||
if (data.ok) { alert('姿态已应用到机械臂') }
|
if (data.ok) { alert('姿态已应用到机械臂') }
|
||||||
@@ -887,7 +887,7 @@ createApp({
|
|||||||
const res = await fetch(API + '/api/arm/set_angles', {
|
const res = await fetch(API + '/api/arm/set_angles', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {'Content-Type':'application/json'},
|
headers: {'Content-Type':'application/json'},
|
||||||
body: JSON.stringify({ angles: q.joint_angles, speed: 50 })
|
body: JSON.stringify({ angles: q.joint_angles, speed: 500 })
|
||||||
})
|
})
|
||||||
const data = await res.json()
|
const data = await res.json()
|
||||||
if (data.ok) { alert('姿态已应用到机械臂')
|
if (data.ok) { alert('姿态已应用到机械臂')
|
||||||
|
|||||||
Reference in New Issue
Block a user