Преглед изворни кода

修复编辑标定点功能

jiuling пре 8 месеци
родитељ
комит
0bfdbcb4a7
1 измењених фајлова са 8 додато и 1 уклоњено
  1. 8 1
      src/views/map/maplist/edit.vue

+ 8 - 1
src/views/map/maplist/edit.vue

@@ -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'; // 速度