feat: 调整机械臂
This commit is contained in:
parent
3b7b151aab
commit
571bfa2552
@ -157,6 +157,7 @@ app.post('/api/agv/stopRobot', async (req, res) => {
|
|||||||
|
|
||||||
// 获取机械臂末端位姿
|
// 获取机械臂末端位姿
|
||||||
app.post('/api/arm/getPose', async (req, res) => {
|
app.post('/api/arm/getPose', async (req, res) => {
|
||||||
|
console.log('ssssssss')
|
||||||
const request = {
|
const request = {
|
||||||
header: {
|
header: {
|
||||||
device_id: req.body.deviceId || 'huayan_arm'
|
device_id: req.body.deviceId || 'huayan_arm'
|
||||||
|
|||||||
@ -419,10 +419,10 @@ onMounted(() => {
|
|||||||
if (timer.value) {
|
if (timer.value) {
|
||||||
clearInterval(timer.value)
|
clearInterval(timer.value)
|
||||||
}
|
}
|
||||||
// timer.value = setInterval(() => {
|
timer.value = setInterval(() => {
|
||||||
getPose()
|
getPose()
|
||||||
getJointState()
|
getJointState()
|
||||||
// }, 100)
|
}, 100)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user