Commit 34783443 authored by ChenKun's avatar ChenKun 🕺🏿

add Prob

parent 383ac80f
......@@ -80,7 +80,7 @@ public:
double mXPos = 0;
double mYPos = 0;
int mProb = 0;
double mProb = 0;
uint64_t mCount = 0;
uint64_t mFMS = 0;
......
......@@ -189,6 +189,7 @@ void FusionDistributeTask::onLidarData(const jfx_common_msgs::det_tracking_array
tObjPtr->mHeight = obj.h;
tObjPtr->mXPos = obj.x;
tObjPtr->mYPos = obj.y;
tObjPtr->mProb = obj.score;
if ("person" == obj.name) {
tObjPtr->mTypeStr = "Person";
} else if ("car" == obj.name) {
......@@ -261,6 +262,7 @@ void FusionDistributeTask::udpSrv()
tObjPtr->mYPos = obj.yPos;
tObjPtr->mTypeStr = obj.type;
tObjPtr->mSubType = 0;
tObjPtr->mProb = obj.score;
mBufTrafficObjListMutex.lock();
mBufTrafficObjList.push_back(tObjPtr);
mBufTrafficObjListMutex.unlock();
......
......@@ -276,6 +276,7 @@ void FusionTrajectionTask::outFusionObj3(int pos, FOBJPtr& fObjPtr, TOBJPtr& tOb
obj.obj_w = fObjPtr->mMainObj->mWidth;
obj.obj_h = fObjPtr->mMainObj->mHeight;
obj.heading = point.heading;
obj.Prob = fObjPtr->mMainObj->mProb;
obj.lane = 0;
obj.cross_name = "";
obj.inner_pos = fObjPtr->mMainObj->mDevIDStr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment