Today we’re making an exciting new feature available as a public alpha: the ability to measure the height of the soil using just FarmBot’s camera and some fancy stereo photography magic
This seems like a good and V useful solution to what has been, for me anyway, a bit of a bugbear. I am just waiting for the camera cable to arrive from you, so that I can set up a permanent camera, then I’ll provide feedback.
Thanks
Dave
It would be nice if the Soil Height option in the Z axis column of Move commands was calculated on the fly, based on surrounding soil height measurements. This is of course assuming the soil is fairly flat with no random heaps or pits, but I think this is true in most cases.
I’ve posted a suggestion in GitHub for using barycentric coordinates to calculate the soil height based on the closest 3 soil height measurements.
Find the `z` of the soil height
based on the UTM's `x` and `y` position
using barycentric coordinates.
b ← -515 mm
/|
/ |
/ |
/ + | ← -507.92 mm (rounded)
/ |
-498 mm → d‾‾‾‾‾c ← -505 mm
Great idea to measure height of the soil or of the plants!
If this feature proofs valuable for the users, you might consider to evaluate the camera technology. For example ToF (Time-of-flight) requires just one camera compared to stero vision or at least one camera that does not need to be moved to calculate height. This results in less complexity and the technical need for calibration vanishes. Looking down from just a single point is beneficial whenever there is a lot leafage in the way. Stereo vision always requires two camera positions.
ToF ranging sensors are widely available, e.g. simple ranging sensors available at hardware stores. In addition ToF measures height in the pitch black because it does not need visible light as illumination of the scene, just a few infrared LEDs or VCSEL. This fits nice with irrigation during nights in order reduce water consumption caused by evaporation through sunlight.
This was actually on our list of possible solutions. Even though the webcam might not offer the same resolution as a ToF or LiDar, it does have advantages:
Problems can be fixed with an OS update (not possible if we need to engineer a custom PCB for a ToF sensor)
Everyone can benefit from this feature, even folks running older v1.2 devices.
I love that the good people at FarmBot don’t always choose the best tool for the job, they choose the tool that they have the best support for. Sure, a webcam needs scene illumination to be useful, but it’s so versatile and yet easy to support.