ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Problem in measuring the width of obstacles using LiDAR

asked 2019-11-07 04:38:03 -0600

spiritninja gravatar image

updated 2019-11-10 22:58:26 -0600

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.

edit retag flag offensive close merge delete

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.

Delb gravatar image Delb  ( 2019-12-06 02:01:51 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-12-06 01:45:51 -0600

spiritninja gravatar image

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.

edit flag offensive delete link more

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 ?

salsama gravatar image salsama  ( 2022-07-10 14:31:04 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2019-11-07 04:38:03 -0600

Seen: 560 times

Last updated: Dec 06 '19