修改问题
This commit is contained in:
parent
1987846510
commit
671ae72c52
@ -109,10 +109,13 @@
|
||||
? (carHeight / nowObject.showYamlJson.resolution / 100) * radio + 'px'
|
||||
: '0',
|
||||
transform: 'rotate(' + radianToDegree(item.data.pose2d.yaw) + 'deg)',
|
||||
transition: 'all 0.2s linear',
|
||||
|
||||
zIndex: 9999
|
||||
}"
|
||||
>
|
||||
>
|
||||
<div style="font-size: 11px;position: absolute;top: -10px;left: 50%;transform: translateX(-50%);">
|
||||
{{ item.robotNo || '' }}
|
||||
</div>
|
||||
<img
|
||||
src="@/assets/imgs/indexPage/chache-4备份 7@2x.png"
|
||||
style="width: 100%; height: 100%"
|
||||
@ -760,7 +763,15 @@ const linkWebSocket = (url) => {
|
||||
data: JSON.parse(data[key])
|
||||
})
|
||||
}
|
||||
// console.log('=====', dataList)
|
||||
console.log('=====',data)
|
||||
dataList.forEach((item) => {
|
||||
// console.log('=====', item.data.pose2d.robotNo)
|
||||
if(item.data.pose2d.robotNo == "zn002" ){
|
||||
console.log(item)
|
||||
console.log('x',item.data.pose2d.x)
|
||||
console.log('y',item.data.pose2d.y)
|
||||
}
|
||||
})
|
||||
testCarList.value = dataList
|
||||
computedRatio()
|
||||
}
|
||||
@ -883,6 +894,11 @@ const computedRatio = () => {
|
||||
item.origin = JSON.parse(nowObject.value.yamlJson).origin
|
||||
item.realX = convertActualToBrowser(item.data.pose2d.x, item.data.pose2d.y).x
|
||||
item.realY = convertActualToBrowser(item.data.pose2d.x, item.data.pose2d.y).y
|
||||
item.robotNo =item.data.pose2d.robotNo
|
||||
if(item.robotNo == 'zn002'){
|
||||
console.log('数据返回坐标',item.robotNo,item.data.pose2d.x,item.data.pose2d.y)
|
||||
console.log('计算返回坐标',item.robotNo,item.realX,item.realY)
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user