Commit 910017d9 authored by oscar's avatar oscar

修改显示融合哪些传感器的信息。

parent f85c019b
......@@ -452,8 +452,25 @@ void TrackingRos2::TrackingPorcess(objTrackListPtr objsPtr) {
markerText.color.g = 1.0f;
markerText.color.b = 0.0f;
markerText.color.a = 1.0;
std::string mergeText = "";
if(input_obj.data_source == 1)
{
mergeText = "L";
if(input_obj.camera_id != 0)
mergeText += "+C";
if(input_obj.radar_id != 0)
mergeText += "+R";
}
else if(input_obj.data_source > 1 && input_obj.data_source < 10)
{
mergeText = "C";
if(input_obj.radar_id != 0)
mergeText += "+R";
}
else if(input_obj.data_source >= 10)
mergeText = "R";
char str[512] = {};
sprintf(str, "%lld:%.2f",iter.first,linear.x);
sprintf(str, "%lld:%.2f:%s",iter.first,linear.x,mergeText.c_str());
// sprintf(str, "%.1f:%d:%d",cof,iter.first,obj.classification[0].label);
// sprintf(str, "%.2f:%d:%.2f:%.2f",cof,obj.classification[0].label,poss.y,poss.x);
markerText.text = str;
......
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