Atlas Robotics
Hardware AMRBasic

Cameras in AMRs: complementing LiDAR where it falls short

Atlasbot · 17/8/2026 · 11 min read

Cameras in AMRs: complementing LiDAR where it falls short
Camera adds detection capabilities that LiDAR does not have

Article LiDAR in AMR architecture said LiDAR is the main sensor for SLAM and obstacle avoidance. But LiDAR has an inherent limitation: it only answers “there is an object there, how far away” — without knowing what that object is. The camera fills this gap.

Key concepts

What LiDAR can't do, Camera can do:

  • Object classification — LiDAR sees "a rectangular block 2m away", camera + recognition model (YOLO, mentioned in project content Atlas A2) knows if it is a "person" or a "carton" or a "shopping cart" — important information to decide how to react (people need to move wider, static cartons can go close more)
  • Read visual information — QR codes/stickers on floors or shelves, signs, signal lights — LiDAR is completely blind to these types of flat 2D data
  • Recognition of transparent/reflective materials — glass, mirrors reflect LiDAR laser beams incorrectly or penetrate completely; cameras (which use normal visible light) are much less susceptible to these materials

How it works

A monocular camera cannot measure absolute distance on its own — it can only be estimated indirectly through the size of the object in the frame (need to know the actual size in advance) or through more complex computer vision techniques (visual odometry, structure from motion). The stereo camera (2 lenses, like the human eye) measures depth directly using parallax triangulation — similar to the LiDAR triangulation principle, but using two 2D images instead of a laser.

Most cameras used in AMR DIY are standard USB UVC types (v4l2 on Linux) — plug and play, no need for separate drivers, image data is read directly via OpenCV or package usb_cam in ROS2.

In short: LiDAR answers "where is something, how far away" very accurately but is blind to the nature of the object; The camera answers "what is that" very well but measures distance less reliably (unless a specialized stereo/depth type is used). Combining the two — not choosing one or the other — is the standard sensor architecture for serious AMR.

Technical details

Formulas

Stereo cameras calculate depth (distance) from the parallax deviation between two left/right images:

Z = (f × B) / d

In which: Z = distance to the object, f = camera focal length (pixels),
B = distance between two lenses (baseline), d = parallax deviation (pixels)

For example: f = 700px, B = 6cm, the object has a measured parallax deviation of d = 21px
Z = (700 × 6) / 21 = 200cm = 2m

The smaller the parallax (the farther away the object), the larger the distance measurement error — this is why stereo cameras are much more reliable at near-medium ranges than at long ranges.

Parameters

CriterionLiDARCamera
Measure distanceExactly directIndirect (monocular) or via parallax (stereo)
Know "what an object is"NoYes (incorporate recognition model)
Calculation costsLow (1D array by angle)High (2D pixel array, especially through AI)
Appropriate processing hardwareRegular CPU (Raspberry Pi is enough)Needs GPU for real-time speed (Jetson)

Practical applications

This is the type of USB UVC camera used in the Atlas A2 project (showcase section of this page) — streaming video via API, processed with YOLOv8 for real-time object recognition. Processing LiDAR data is much lighter than processing camera images via AI models — this is why robots that only use LiDAR (like Mecanum Robot, Diff Robot in the showcase) run well on Raspberry Pi 4, while robots with additional cameras + YOLO (like Atlas A2) need to upgrade to a computer with GPU (Jetson Orin Nano) to process fast enough in real time.

Practical example

Stereo camera baseline B = 6cm, focal length f = 700px, compare accuracy by distance:

Object at 1m: d = (700×6)/100 = 42px → error 1px → distance error ≈ 2.4%
Object at 5m: d = (700×6)/500 = 8.4px → error 1px → distance error ≈ 12%
Object at 10m: d = (700×6)/1000 = 4.2px → error 1px → distance error ≈ 24%

Error increases rapidly with distance because parallax gradually decreases while pixel measurement error is almost constant — this is why stereo cameras on AMR are usually only reliable within a few meters, but long distances should still rely on LiDAR.

Common mistakes

  • Use a single (monocular) camera to measure absolute distance without correction — there is no baseline to triangulate, the result is only a relative estimate based on the known object size, easily wrong if the actual object is different from the assumed size.
  • Expect stereo cameras to be as accurate at long distances as LiDAR — as calculated in the above example, the error increases rapidly with distance due to decreasing parallax, making it unsuitable to replace LiDAR for long-range obstacle avoidance.
  • Running heavy AI recognition models on GPU-insufficient hardware — as stated, AI image processing requires GPUs to achieve real-time speed; Running on a regular CPU (like a Raspberry Pi) can easily cause the recognition delay to be too large to avoid obstacles in time.
  • Only use the camera without LiDAR (or vice versa) — as stated in the Summary section, the two sensors complement each other, not replace each other; AMR using only 1 of the 2 will have serious blind spots in exactly what the other sensor does well.

Conclusion

The camera fills the gap left by LiDAR — knowing "what the object is," reading visual information, less affected by transparent materials — but at the cost of higher computational costs and less reliable distance accuracy at long ranges. The next article in the column goes into the IMU — the inertial sensor that helps the robot know how it is tilting, turning, and accelerating, another piece of the AMR's complete sensor puzzle.

Get new articles and lessons by email

When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.

Unsubscribe any time with the link in each email. See our Privacy policy.

Cameras in AMRs: complementing LiDAR where it falls short — Atlas Robotics