M-File Help: LandmarkMap View code for LandmarkMap

LandmarkMap

Map of planar point landmarks

A LandmarkMap object represents a square 2D environment with a number of landmark landmark points.

Methods

plot Plot the landmark map
landmark Return a specified map landmark
display Display map parameters in human readable form
char Convert map parameters to human readable string

Properties

map Matrix of map landmark coordinates 2xN
dim The dimensions of the map region x,y in [-dim,dim]
nlandmarks The number of map landmarks N

Examples

To create a map for an area where X and Y are in the range -10 to +10 metres and with 50 random landmark points

map = LandmarkMap(50, 10);

which can be displayed by

map.plot();

Reference

Robotics, Vision & Control, Chap 6, Peter Corke, Springer 2011

See also

RangeBearingSensor, EKF


LandmarkMap.LandmarkMap

Create a map of point landmark landmarks

m = LandmarkMap(n, dim, options) is a LandmarkMap object that represents n random point landmarks in a planar region bounded by +/-dim in the x- and y-directions.

Options

'verbose' Be verbose

LandmarkMap.char

Convert map parameters to a string

s = M.char() is a string showing map parameters in a compact human readable format.


LandmarkMap.display

Display map parameters

M.display() displays map parameters in a compact human readable form.

Notes

See also

map.char


LandmarkMap.landmark

Get landmarks from map

f = M.landmark(k) is the coordinate (2x1) of the k'th landmark (landmark).


LandmarkMap.plot

Plot the map

M.plot() plots the landmark map in the current figure, as a square region with dimensions given by the M.dim property. Each landmark is marked by a black diamond.

M.plot(ls) as above, but the arguments ls are passed to plot and override the default marker style.

Notes


LandmarkMap.show

Show the landmark map

Notes


LandmarkMap.verbosity

Set verbosity

M.verbosity(v) set verbosity to v, where 0 is silent and greater values display more information.


 

© 1990-2014 Peter Corke.