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

Imrpove scan results

asked 2020-05-24 19:04:23 -0500

Luciano Herrera gravatar image

updated 2022-03-20 09:45:08 -0500

lucasw gravatar image

Hi everybody,

I'm trying to simulate a laser scanner with an ultrasonic sensor. Due I can't afford one. I'm using the LEGO Mindstorms set programed with Java and integrated with rosjava. The ultrasonic sensor is obviously less accurate and slower than a laser sensor. But what I'm trying to demonstrate is that with this sensor it is possible to use in a SLAM application and mapping. The thing is that when the robot is surrounded by walls, the readings (red dots) in Rviz are curved, when they were supposed to be flatted. I've been playing with the gmapping parameters without any success. Is there any readings filter or an specific programming to improve the sensor accuracy. This is what I get running rviz and gmapping. The sensor is only capable to do up to 60 reading each 360 degrees.image description

edit retag flag offensive close merge delete

Comments

We cannot see your screenshot.

Please do not link to 3rd party hosting providers, as there are often times problems with retention. If/when your external image goes away/off-line, your question loses quite a bit of its value.

I've given you sufficient karma to attach the image directly to your question. Please do that by editing your current question, using the edit button/link.

gvdhoorn gravatar image gvdhoorn  ( 2020-05-25 02:47:57 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-05-25 10:50:44 -0500

Dragonslayer gravatar image

updated 2020-05-25 11:20:09 -0500

This looks like an offaxis sensor mounting problem. The sensor is mounted in front/behind of the yawing/angular-z axis. This might not be true in hardware but maybe the driver generates a nonzero offset. How do you turn the sensor and where is this axis? In the picture it seems the ultrasonic sensor is at the front/back of the base and diff-drive? wheels at the back? If this observationis true, set the sensor in between the diff_drive wheels and try again. If the problem gets better, this might then indicate a problem with the transforms or base controller odometry.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-05-24 19:04:23 -0500

Seen: 129 times

Last updated: May 25 '20