Problem in measuring the width of obstacles using LiDAR
I'm using a Hokuyo UTM-30LX lidar on a mobile robot to measure the dimensions of obstacles from a distance. Being a 2D LiDAR, i'm starting off trying to measure the width of a door.
Finding the number of LiDAR data points that fall on the door and the angle of resolution of the LiDAR, i'm calculating the approximate width using the range valuesfor the points falling on the door. So far the results haven't been accurate enough.
Is there any work available where in which a LiDAR has been used with ROS to measure the dimention of objects? Could anyone suggest any changes to the method of know what might usually work?
Specs:
OS: Ubuntu 14.04 ROS: Indigo Sensor: Hokuyo UTM-30LX LiDAR.
Thank you.
Asked by spiritninja on 2019-11-07 05:38:03 UTC
Answers
A roughly working approach which I followed uses basic trigonometry and knowing the angular resolution of the LiDAR used.
The only drawback being the distance between the LiDAR and the object (such as a door) whose width is to be measured must remain constant.
Calculating the number of LiDAR points falling on the object, having known the angular resolution I could pretty much estimate the width in real time.
Asked by spiritninja on 2019-12-06 02:45:51 UTC
Comments
hey please, i'm stuck with the size measurment i have the distance information and the angular resolution but i don't know how to get the width and height measurment . could you please help ?
Asked by salsama on 2022-07-10 14:31:04 UTC
Comments
You could have a look at RANSAC algorithm. It can be used for line detection (which should detect your door), so you could read the first and last points detected to calculate the width of the detected object.
Asked by Delb on 2019-12-06 03:01:51 UTC