Commit 80fb4dd2 authored by oscar's avatar oscar

提交更新

parent 6ad05d9c
......@@ -478,11 +478,11 @@ void TrackingRos::ThreadTrackingProcess()
}
if(iter.second->m_obj)
last_type = iter.second->m_obj->type;
if (iter.second->m_number.empty() && !obj.license_plate_number.empty())
if (iter.second->m_number.empty() && !obj.license_plate_number.empty() && obj.license_plate_number != "None")
{
iter.second->m_number = obj.license_plate_number;
}
else if (!iter.second->m_number.empty() && !obj.license_plate_number.empty())
else if (!iter.second->m_number.empty() && !obj.license_plate_number.empty() && obj.license_plate_number != "None")
{
if (iter.second->m_number != obj.license_plate_number)
{
......@@ -660,7 +660,12 @@ void TrackingRos::ThreadTrackingProcess()
jf_ajson::save_to(ss, send_abu);
std_msgs::String s_msg;
s_msg.data = std::move(ss.str());
SDK_LOG(SDK_INFO, "send abuzhabi msg = %s", s_msg.data.c_str());
static uint64_t countBeginA = GetCurTime();
if (GetCurTime() - countBeginA > 1000 * 1000)
{
SDK_LOG(SDK_INFO, "send abuzhabi msg = %s", s_msg.data.c_str());
countBeginA = GetCurTime();
}
m_pubAbuzhabi.publish(s_msg);
#endif
#ifdef _USING_NSIGHT_
......
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