0
$\begingroup$

Rosanswers logo

I have a small differential drive robot with a single sonar sensor mounted on the front of it. I also have an IMU and GPS on the vehicle. My goal is to navigate from one point to another in an unknown environment and avoid obstacles along the way.

At the moment we're testing indoors, so the GPS is out of the picture. I want to be able to send a waypoint via rviz (simulating a GPS coordinate waypoint) and have the vehicle navigate there.

I don't believe mapping is necessary for my application, however I think localization is - or else how would it know it arrived at its destination? I plan on using robot localization to combine my IMU and odometry sensors and create a pose estimate. But won't that estimate drift over time?

Does ROS have any packages that will enable my robot to correct for odometry drift and adjust itself in the map frame, using sonar data? What I've seen used so far is support for LIDAR and LaserScan messages along with gmapping or hector_slam, but I don't have that hardware.


Originally posted by triantatwo on ROS Answers with karma: 237 on 2016-06-19

Post score: 0


Original comments

Comment by Tom Moore on 2016-06-20:
Does your sonar produce only a single range measurement?

Comment by triantatwo on 2016-06-20:
Yes, the sonar only produces a single measurement. However it's also attached to a servo motor, so I could potentially halt the vehicle and scan at discrete intervals. The sonar hardware is: http://www.dfrobot.com/wiki/index.php/URM37_V3.2_Ultrasonic_Sensor_(SKU:SEN0001)

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

I would say no. Sonar sensors read in a cone, therefore you can't be sure that what you detect is directly in front of the sensor. You can use sonar to make sure that you don't approach too close to an obstacle, but I don't think it will help much with localization.


Originally posted by Icehawk101 with karma: 955 on 2016-06-21

This answer was ACCEPTED on the original site

Post score: 4

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.