Commit c3adc831 authored by oscar's avatar oscar

修改检测物体为car的时候使用检测的朝向

parent 6edf7d1b
......@@ -639,6 +639,8 @@ void TrackingRos::ThreadTrackingProcess()
obj.y = data[1];
obj.z = data[2];
obj.rot_y = iter.second->GetRotY(data[3]);
if(obj.name == "car")
obj.rot_y = input_obj.rot_y;
obj.l = data[4];
obj.w = data[5];
obj.h = data[6];
......@@ -721,7 +723,8 @@ void TrackingRos::ThreadTrackingProcess()
obj.x = data[0];
obj.y = data[1];
obj.z = data[2];
obj.rot_y = iter.second->GetRotY(data[3]);
if(obj.name != "car")
obj.rot_y = iter.second->GetRotY(data[3]);
obj.l = data[4];
obj.w = data[5];
obj.h = data[6];
......
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