Ray Casting for Implementing Map based Localization in Mobile Robots
by Shikhar Shrestha
29 May 2012
(Updated 08 Jun 2012)
The code is an efficient implementation of ray casting used to obtain simulated range measurements.
|
Watch this File
|
| File Information |
| Description |
The code returns simulated range measurements for a robot with a range sensor placed in a known environment. It implements Ray Casting which is an important step for performing Map based localization in Mobile robots using state estimation algorithms such as Extended Kalman Filters, Particle Filters (Sequential Monte Carlo), Markov Localization etc.
The inputs to the castrays.m function are the Robot position, map of environment as logical matrix (Free space = 0, Obstacles = 1), Number of rays to cast, Range of LIDAR in cm.
The function can be used in performing simulations for Mobile robot Localization or for computing importance weights/Measurement probabilities for actual localization. |
| Required Products |
MATLAB
|
| MATLAB release |
MATLAB 7.10 (R2010a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 08 Jun 2012 |
Corrected a minor error in the code. The upper bound of the for loop has to be n (number of scan lines). |
|
Contact us