Open blamezdn opened 3 years ago
The z is heading, x is right and y is the vertical direction. You can ref to link
@daohu527 So theat_ray is the angle between vehicle orientation and x ( or z ?) axis, means atan2(z, x) ? That's what I feel strange.
@daohu527 I think also that there is an error here. The function atan2 takes the values of the first - "Y" (camera coordinate Z) and the second - "X" (camera coordinate X) coordinates. So it should be "theta_ray = static_cast(atan2(point_in_camera.z(), point_in_camera.x()));". Orientation determination works better with these changes (multicue_obstacle_transformer.cc:69 and location_refiner_obstacle_postprocessor.cc:113).
what is the orientation of camera cordinate, x axis to right or front?
theta_ray = static_cast(atan2(point_in_camera.x(), point_in_camera.z()));
Is it should be " theta_ray = static_cast(atan2(point_in_camera.z(), point_in_camera.x())); " ?