|
@@ -613,7 +613,9 @@ Error_manager System_executor::encapsulate_send_mq_status()
|
|
|
}else
|
|
|
{
|
|
|
LOG_IF(WARNING, iter->second->get_terminal_id() == DISP_TERM_ID)<<
|
|
|
- "detect mismatch, region "<<iter->first<<", dx dy dang dwb: "<<dx<<", "<<dy<<", "<<dang<<", "<< dwb;
|
|
|
+ "detect mismatch, region "<<iter->first<<", dx dy dang dwb: "<<dx<<", "<<dy<<", "<<dang<<", "<< dwb << std::endl
|
|
|
+ << t_car_wheel_information.to_string() << std::endl
|
|
|
+ << t_wj_car_wheel_information.to_string() << std::endl;
|
|
|
}
|
|
|
|
|
|
}else{
|
|
@@ -679,7 +681,7 @@ Error_manager System_executor::encapsulate_send_mq_status()
|
|
|
if (t_multi_status_msg.id_struct().terminal_id() == DISP_TERM_ID)
|
|
|
{
|
|
|
// LOG(WARNING) << t_car_wheel_information.range_status<<std::endl;
|
|
|
- std::cout << t_multi_status_msg.DebugString() << std::endl
|
|
|
+ LOG(INFO) << t_multi_status_msg.DebugString() << std::endl
|
|
|
<< std::endl;
|
|
|
}
|
|
|
}
|
|
@@ -989,15 +991,16 @@ Error_manager System_executor::encapsulate_send_status()
|
|
|
double dang = t_car_wheel_information.car_angle - t_wj_car_wheel_information.car_angle;
|
|
|
double dwb = t_car_wheel_information.car_wheel_base - t_wj_car_wheel_information.car_wheel_base;
|
|
|
|
|
|
+ // 使用rabbit mq 中函数计算偏差与提示,此处不处理!!
|
|
|
if(fabs(dx) < 0.03 && fabs(dy) < 0.06 && fabs(dang) < 0.6 && fabs(dwb) < 0.055)
|
|
|
{
|
|
|
- t_car_wheel_information.car_wheel_base = t_car_wheel_information.car_wheel_base*0.3 + t_car_wheel_information.car_wheel_base*0.7;
|
|
|
+ // t_car_wheel_information.car_wheel_base = t_car_wheel_information.car_wheel_base*0.3 + t_car_wheel_information.car_wheel_base*0.7;
|
|
|
}else
|
|
|
{
|
|
|
- LOG_IF(WARNING, iter->second->get_terminal_id() == DISP_TERM_ID)<<
|
|
|
- "detect mismatch, region "<<iter->first<<", dx dy dang dwb: "<<dx<<", "<<dy<<", "<<dang<<", "<< dwb << std::endl
|
|
|
- << t_car_wheel_information.to_string() << std::endl
|
|
|
- << t_wj_car_wheel_information.to_string() << std::endl;
|
|
|
+ // LOG_IF(WARNING, iter->second->get_terminal_id() == DISP_TERM_ID)<<
|
|
|
+ // "detect mismatch, region "<<iter->first<<", dx dy dang dwb: "<<dx<<", "<<dy<<", "<<dang<<", "<< dwb << std::endl
|
|
|
+ // << t_car_wheel_information.to_string() << std::endl
|
|
|
+ // << t_wj_car_wheel_information.to_string() << std::endl;
|
|
|
}
|
|
|
|
|
|
}else{
|