<< NARVAL_IP_PotentialRot NARVAL NARVAL_IP_RectObstacle >>

NARVAL >> NARVAL > NARVAL_IP_RectMObstacles

NARVAL_IP_RectMObstacles

Generate the coordinates of the corners of rectangles (obstacles) in respect with a set of defined angles.

Calling Sequence

[Xs,Ys,X,Y,H,W,A] = NARVAL_IP_RectObstacles(no,L,hm,hM,wm,wM,Al)

Parameters

no :

quantity of rectangles.

L :

square area side.

hm :

minimum height.

hM :

maximum height.

wm :

minimum width.

wM :

maximum width.

Al :

vector of available angles.

Xs :

x-coordinate of all obstacles corners.

Ys :

y-coordinate of all obstacles corners.

X :

x-coordinate of the main corner of each obstacle.

Y :

y-coordinate of the main corner of each obstacle.

H :

height of each obstacle.

W :

width of each obstacle.

A :

angle of each obstacle.

Description

NARVAL_IP_RectMObstacles generates the corners coordinates 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 sides and the x-axis a (randomly chosen between the set of available angles stored in Al). 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.

Examples

no=4;//quantity of obstacles (rectangle)
L=1000;//squared area side
hm=100;//minimal height
hM=250;//maximal height
wm=100;//minimal width
wM=250;//maximal width
Al=[0 %pi/2 %pi -%pi/2];//available angles for obstacles
[Xs,Ys,X,Y,H,W,A]=NARVAL_IP_RectMObstacles(no,L,hm,hM,wm,wM,Al);//application of NARVAL_IP_RectMObstacles
Xs
Ys
X
Y
H
W
A

Dependency

NARVAL_IP_RectObstacle

Authors

Foued Melakessou

Contact

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

Home Page


<< NARVAL_IP_PotentialRot NARVAL NARVAL_IP_RectObstacle >>