Commit 428f6cf9 authored by oscar's avatar oscar

提交gpu的数据输入修改

parent ca0f37c2
......@@ -58,7 +58,7 @@ Track3D::Track3D():BaseTrack(10, 7)
0, 0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 1, 0, 0,
0, 0, 0, 0, 0, 1, 0,
0, 0, 0, 0, 0, 0, 0.1;
0, 0, 0, 0, 0, 0, 1;
kf_ = kf;
......
......@@ -166,10 +166,10 @@ void TrackingRos::ThreadTrackingProcess()
data.push_back(obj.x);//x对应经度
data.push_back(obj.y);//y对应纬度
data.push_back(obj.z);
data.push_back(obj.rot_y);
data.push_back(obj.l);
data.push_back(obj.w);
data.push_back(obj.h);
data.push_back(obj.rot_y);
input.emplace_back(data);
}
std::vector<uint64_t> detectionsId;
......@@ -214,10 +214,10 @@ void TrackingRos::ThreadTrackingProcess()
obj.x = data[0];
obj.y = data[1];
obj.z = data[2];
obj.rot_y = data[6];
obj.l = data[3];
obj.w = data[4];
obj.h = data[5];
obj.rot_y = data[6];
obj.v_x = data[7];
obj.v_y = data[8];
obj.v_z = data[9];
......@@ -227,9 +227,9 @@ void TrackingRos::ThreadTrackingProcess()
{
SDK_LOG(SDK_INFO, "frame = %llu, id = %llu, input(%f,%f,%f,%f,%f,%f,%f) predict(%f,%f,%f,%f,%f,%f,%f) output(%f,%f,%f,%f,%f,%f,%f) prob = %f",
obj.frame, iter.first, objsPtr->array[updateId[iter.first]].x, objsPtr->array[updateId[iter.first]].y, objsPtr->array[updateId[iter.first]].z,
objsPtr->array[updateId[iter.first]].l, objsPtr->array[updateId[iter.first]].w, objsPtr->array[updateId[iter.first]].h, objsPtr->array[updateId[iter.first]].rot_y,
objsPtr->array[updateId[iter.first]].rot_y, objsPtr->array[updateId[iter.first]].l, objsPtr->array[updateId[iter.first]].w, objsPtr->array[updateId[iter.first]].h,
predict[0], predict[1], predict[2], predict[3], predict[4], predict[5], predict[6],
obj.x, obj.y, obj.z, obj.l, obj.w, obj.h, obj.rot_y, iter.second->GetProb());
obj.x, obj.y, obj.z, obj.rot_y, obj.l, obj.w, obj.h, iter.second->GetProb());
}
float gx = 0.0f;
float gy = 0.0f;
......@@ -253,10 +253,10 @@ void TrackingRos::ThreadTrackingProcess()
obj.x = data[0];
obj.y = data[1];
obj.z = data[2];
obj.rot_y = data[6];
obj.l = data[3];
obj.w = data[4];
obj.h = data[5];
obj.rot_y = data[6];
obj.v_x = data[7];
obj.v_y = data[8];
obj.v_z = data[9];
......
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