LingxinMeng пре 7 месеци
родитељ
комит
e64c417921
1 измењених фајлова са 8 додато и 4 уклоњено
  1. 8 4
      src/python2/pjibot_delivery/resource/bagtocsv_robot.py

+ 8 - 4
src/python2/pjibot_delivery/resource/bagtocsv_robot.py

@@ -108,9 +108,11 @@ def parsehancheng(input_dir, output_dir):
                 date_time = datetime.fromtimestamp(timestamp)
                 locationsimtime=(date_time-first_message_time).total_seconds()
                 ego_posx=msg.pose.position.x
-                poseX=ego_posx-88.96626338170609
+                # poseX=ego_posx-88.96626338170609
+                poseX=ego_posx
                 ego_posy=msg.pose.position.y
-                poseY=ego_posy-40.553671177476645
+                # poseY=ego_posy-40.553671177476645
+                poseY=ego_posy
                 poseZ=msg.pose.position.z
                 orientationX=msg.pose.orientation.x
                 orientationY=msg.pose.orientation.y
@@ -137,8 +139,10 @@ def parsehancheng(input_dir, output_dir):
                     #simtime=(date_time-first_message_time).total_seconds()
                     for i in range(msg_l):
                         obj_ID = msg.objects[i].id
-                        obj_x = msg.objects[i].pose.position.x-88.96626338170609
-                        obj_y = msg.objects[i].pose.position.y-40.553671177476645
+                        # obj_x = msg.objects[i].pose.position.x-88.96626338170609
+                        obj_x = msg.objects[i].pose.position.x
+                        # obj_y = msg.objects[i].pose.position.y-40.553671177476645
+                        obj_y = msg.objects[i].pose.position.y
                         obj_z = msg.objects[i].pose.position.z
                         obj_orientationX=msg.objects[i].pose.orientation.x
                         obj_orientationY=msg.objects[i].pose.orientation.y