Commit 820494d5 authored by oscar's avatar oscar

修改速度计算位xy的平方和开方。

parent 0dd8f27c
......@@ -252,7 +252,7 @@ void EventsRos::TrackCallBackFunc(const jfxrosperceiver::det_tracking_arrayConst
obj.lon = item.Long;//车所在位置的经度
obj.heading = item.rot_y;//车运行的朝向,北为0,顺时针0-360
obj.id = item.obj_id;//物体id
obj.speed = sqrt(pow(item.v_x, 2) + pow(item.v_y, 2) + pow(item.v_z, 2));//计算出车的速度
obj.speed = sqrt(pow(item.v_x, 2) + pow(item.v_y, 2));//计算出车的速度
obj.acc_x = item.acc_x;
obj.acc_y = item.acc_y;
for(int i = 0; i < item.points.size(); i++)
......
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