|
Algorithm 1 Lidar point coordinates
|
| 1: |
procedure |
|
| 2: |
•Get the undirstorted point in pixel coordinates. |
| 3: |
function UndirstortPoint() |
| 4: |
|
|
| 5: |
|
|
| 6: |
return
|
|
| 7: |
end function
|
|
|
|
|
| 8: |
•Get the directional vector in the camera frame. |
| 9: |
function DirectionalVector() |
| 10: |
|
|
| 11: |
|
|
| 12: |
|
|
| 13: |
return
|
|
| 14: |
end function
|
|
|
|
|
| 15: |
•Get the directional vector in the lidar frame. |
| 16: |
function Camera2LidaRotation() |
| 17: |
|
|
| 18: |
return
|
|
| 19: |
end function
|
|
|
|
|
| 20: |
•Compute the intersection point between a line and a plane. |
| 21: |
function PlaneLineCrossingPoint() |
| 22: |
|
▷ creates the vector |
| 23: |
|
▷ board’s parallel plane model |
| 24: |
|
▷ plane normal vector |
| 25: |
|
▷ a point in the model plane |
| 26: |
|
▷ translation vector from camera to lidar |
| 27: |
|
|
| 28: |
|
▷ dot product |
| 29: |
|
▷ dot product |
| 30: |
|
|
| 31: |
|
▷ intersection point |
| 32: |
return
|
|
| 33: |
end function
|
|
| 34: |
end procedure |
|