|
|
@@ -24,7 +24,7 @@
|
|
|
:height="olHeight + 'px'"
|
|
|
backgroundColor="#F5F5F5"
|
|
|
:mapName="mapName"
|
|
|
- :isShowRobot="false"
|
|
|
+ :robotPoseData="robotPoseData"
|
|
|
:pointDraSelectEnabled="pointDraSelectEnabled"
|
|
|
:showDefaultControls="false"
|
|
|
@elementRoadInitEnd="elementRoadInitEnd"
|
|
|
@@ -328,6 +328,13 @@ export default {
|
|
|
try {
|
|
|
const data = message.args[0];
|
|
|
const {xyz, rpy, blh, heading} = data.pose;
|
|
|
+ this.robotPoseData.x = xyz[0];
|
|
|
+ this.robotPoseData.y = xyz[1];
|
|
|
+ this.robotPoseData.angle = rpy[2];
|
|
|
+ this.currentRobotRecord.x = xyz[0];
|
|
|
+ this.currentRobotRecord.y = xyz[1];
|
|
|
+ this.currentRobotRecord.z = xyz[2];
|
|
|
+ this.currentRobotRecord.angle = rpy[2];
|
|
|
this.realtimeInfo.coordinates = `(${xyz[0]},${xyz[1]},${xyz[2]})`;
|
|
|
this.realtimeInfo.heading = rpy[2] + '°'; // 航向角
|
|
|
this.realtimeInfo.speed = data.vel.heading+ 'm/s'; // 速度
|