|
@@ -105,11 +105,7 @@ void Dispatch_ground_lidar::execute_thread_fun()
|
|
|
std::unique_lock<std::mutex> t_lock(Dispatch_communication::get_instance_references().m_data_lock);
|
|
|
std::unique_lock<std::mutex> t_lock2(m_lock);
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- //将nnxx的protobuf 转化为 snap7的DB块, 把店面雷达数据转发给plc
|
|
|
+ //将nnxx的protobuf 转化为 snap7的DB块, 把店面雷达数据转发给plc
|
|
|
// int t_inlet_id = m_ground_status_msg.mutable_id_struct()->terminal_id() % 2;
|
|
|
int t_inlet_id = m_ground_lidar_id;
|
|
|
Dispatch_communication::Ground_lidar_response_from_manager_to_plc_for_data *p_response_data = &Dispatch_communication::get_instance_references().m_ground_lidar_response_from_manager_to_plc_for_data[t_inlet_id];
|
|
@@ -152,6 +148,8 @@ void Dispatch_ground_lidar::execute_thread_fun()
|
|
|
p_response_data->m_response_uniformed_car_y = m_measure_info.cy();
|
|
|
|
|
|
p_response_data->m_response_locate_correct = 1; //locate_correct 0=无效, 1=有效,
|
|
|
+ p_response_data->m_response_ground_status = m_measure_info.ground_status(); //0 ok 1,nothing 2,noise 3,border
|
|
|
+
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -168,7 +166,8 @@ void Dispatch_ground_lidar::execute_thread_fun()
|
|
|
p_response_data->m_response_uniformed_car_y = 0;
|
|
|
|
|
|
p_response_data->m_response_locate_correct = 0;
|
|
|
- }
|
|
|
+ p_response_data->m_response_ground_status = m_measure_info.ground_status(); //0 ok 1,nothing 2,noise 3,border
|
|
|
+ }
|
|
|
|
|
|
// LOG(WARNING) << "------------------------------------------------------------ "<<std::endl;
|
|
|
// LOG(WARNING) << "m_measure_info = " << m_measure_info.ground_status() <<std::endl;
|
|
@@ -220,7 +219,8 @@ void Dispatch_ground_lidar::execute_thread_fun()
|
|
|
p_response_data->m_response_uniformed_car_y = m_measure_info.cy();
|
|
|
|
|
|
p_response_data->m_response_locate_correct = 1; //locate_correct 0=无效, 1=有效,
|
|
|
- }
|
|
|
+ p_response_data->m_response_ground_status = m_measure_info.ground_status(); //0 ok 1,nothing 2,noise 3,border
|
|
|
+ }
|
|
|
else
|
|
|
{
|
|
|
p_response_data->m_response_car_center_x = 0;
|
|
@@ -236,7 +236,8 @@ void Dispatch_ground_lidar::execute_thread_fun()
|
|
|
p_response_data->m_response_uniformed_car_y = 0;
|
|
|
|
|
|
p_response_data->m_response_locate_correct = 0;
|
|
|
- }
|
|
|
+ p_response_data->m_response_ground_status = m_measure_info.ground_status(); //0 ok 1,nothing 2,noise 3,border
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
m_ground_status_msg_updata_flag = false;
|