Create an odometry motion model
odometryMotionModel
creates an odometry motion model object
for differential drive vehicles. This object contains specific motion model parameters.
You can use this object to specify the motion model parameters in the monteCarloLocalization
object.
This motion model assumes that the vehicle makes pure rotation and translation motions
to travel from one location to the other. The model propagates points for either forward
or backwards motion based on these motion patterns. The elements of the
Noise
property refer to the variance in the motion. To see the
effect of changing the noise parameters, use showNoiseDistribution
.
creates an
odometry motion model object for differential drive vehicles.omm
= odometryMotionModel
showNoiseDistribution | Display noise parameter effects |
If you make changes to your motion model after using it with the
monteCarloLocalization
object, call release
on
that object beforehand. For example:
mcl = monteCarloLocalization; [isUpdated,pose,covariance] = mcl(ranges,angles); release(mcl) mcl.MotionModel.Noise = [0.25 0.25 0.4 0.4];
[1] Thrun, Sebatian, Wolfram Burgard, and Dieter Fox. Probabilistic Robotics. MIT Press, 2005.