Преглед на файлове

change the cout message

liyupeng преди 7 месеца
родител
ревизия
24e41478a2
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      src/detection/CenterPoint-master/src/main.cpp

+ 4 - 4
src/detection/CenterPoint-master/src/main.cpp

@@ -348,12 +348,12 @@ void GetLidarObj_nms(std::vector<BBOX3D> &predResult,iv::lidar::objectarray & li
 
         std::cout<<"obstacle id is: "<<idx<<std::endl;
         std::cout<<"obstacle score is: "<<result.score<<std::endl;
-        std::cout<<"(x,y,z,dx,dy,dz,yaw,class)=("<<result.x<<","<<result.y<<","<<result.z<<","
-                <<result.w<<","<<result.l<<","<<result.h<<","<<result.theta<<","<<labels[result.cls]<<")"<<std::endl;
+        std::cout<<"(x,y,z,dx,dy,dz,yaw,class)=("<<-result.y<<","<<result.x<<","<<result.z<<","
+                <<result.l<<","<<result.w<<","<<result.h<<","<<-result.theta<<","<<labels[result.cls]<<")"<<std::endl;
 
         givlog->verbose("obstacle id is: %d",idx);
-        givlog->verbose("(x,y,z,dx,dy,dz,yaw,class)=(%f,%f,%f,%f,%f,%f,%f,%s)",result.x,result.y,result.z,
-                        result.w,result.l,result.h,result.theta,labels[result.cls]);
+        givlog->verbose("(x,y,z,dx,dy,dz,yaw,class)=(%f,%f,%f,%f,%f,%f,%f,%s)",-result.y,result.x,result.z,
+                        result.l,result.w,result.h,-result.theta,labels[result.cls]);
 
 
         iv::lidar::PointXYZ centroid;