Generate the coordinates of corners of rectangles (obstacles).
[Xs,Ys,X,Y,H,W,A] = NARVAL_IP_RectObstacles(no,L,hm,hM,wm,wM)
quantity of rectangles.
square area side.
minimum height.
maximum height.
minimum width.
maximum width.
x-coordinate of all obstacles corners.
y-coordinate of all obstacles corners.
x-coordinate of the main corner of each obstacle.
y-coordinate of the main corner of each obstacle.
height of each obstacle.
width of each obstacle.
angle of each obstacle.
NARVAL_IP_RectObstacles generates the coordinates of the corners of lo rectangles (obstacles) inside a square of side L. Each rectangle is defined by its main corner coordinates [x,y], its height h (randomly chosen between hm and hM), its width w (randomly chosen between wm and wM) and the angle between its largest side and the x-axis a (randomly chosen between 0 and 2*π). These values for all obstacles are stored respectivelly in X, Y, H, W and A. Xs (respectivelly Ys) gathers the x-coordinate (respectivelly y-coordinate) of all obstacle corners.
Dr. Foued Melakessou
Research Associate
Interdisciplinary Centre for Security, Reliability and Trust
Room F106
University of Luxembourg
6, rue Coudenhove Kalergi
L-1359 Luxembourg-Kirchberg
E-mail: foued.melakessou@uni.lu
Tel: (+352) 46 66 44 5346