M-File Help: LandmarkMap | View code for LandmarkMap |
Map of planar point landmarks
A LandmarkMap object represents a square 2D environment with a number of landmark landmark points.
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 |
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 |
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();
Robotics, Vision & Control, Chap 6, Peter Corke, Springer 2011
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.
'verbose' | Be verbose |
Convert map parameters to a string
s = M.char() is a string showing map parameters in a compact human readable format.
Display map parameters
M.display() displays map parameters in a compact human readable form.
Get landmarks from map
f = M.landmark(k) is the coordinate (2x1) of the k'th landmark (landmark).
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.
Show the landmark map
Set verbosity
M.verbosity(v) set verbosity to v, where 0 is silent and greater values display more information.
© 1990-2014 Peter Corke.