浏览代码

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;