Matlab:实现在自我坐标中检测车辆碰撞
function collision = helperSLDetectVehicleCollision(targetPoses, vehicleProfiles)
collision = false;
egoProfile = vehicleProfiles(1);
p1 = vehicle2polyshape(...
[0 0],... % Position [x y] (m)
0,... % Yaw (deg)
egoProfile.Width,...
egoProfile.Length,...