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) => {
|
||||
console.log('ssssssss')
|
||||
const request = {
|
||||
header: {
|
||||
device_id: req.body.deviceId || 'huayan_arm'
|
||||
|
||||
@ -419,10 +419,10 @@ onMounted(() => {
|
||||
if (timer.value) {
|
||||
clearInterval(timer.value)
|
||||
}
|
||||
// timer.value = setInterval(() => {
|
||||
timer.value = setInterval(() => {
|
||||
getPose()
|
||||
getJointState()
|
||||
// }, 100)
|
||||
}, 100)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user