Commit d5379273 authored by ChenKun's avatar ChenKun 🕺🏿

debug

parent f310159d
......@@ -8,7 +8,8 @@
typedef struct _UdpRadarObj
{
std::string id;
int32_t id;
uint64_t time;
std::string strId;
std::string type;
int32_t vehType;
......
......@@ -140,7 +140,7 @@ void FusionDistributeTask::onVisionData(const jfx_common_msgs::det_tracking_arra
tObjPtr->mDevIDStr = obj.color_name;
tObjPtr->mID = obj.obj_id;
tObjPtr->mModeStr = "v";
tObjPtr->mMS = obj.create_stamp;
tObjPtr->mMS = obj.frame;
tObjPtr->mLon = obj.Long;
tObjPtr->mLat = obj.Lat;
tObjPtr->mAlt = 0;
......@@ -197,12 +197,12 @@ void FusionDistributeTask::udpSrv()
}
UdpRadarData radar_data = {};
memcpy((void*)radar_data, data, (size_t)sizeof(data));
memcpy((void*)&radar_data, data, (size_t)sizeof(data));
tObjPtr->mDevIDStr = radar_data.device;
tObjPtr->mModeStr = "r";
for (const auto obj : radar_data.objs) {
tObjPtr->mID = obj.id;
tObjPtr->mMS = obj.create_stamp;
tObjPtr->mMS = obj.time;
tObjPtr->mLon = obj.lon;
tObjPtr->mLat = obj.lat;
tObjPtr->mAlt = 0;
......
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