Manual OpenCRGAdams
Manual OpenCRGAdams
2 OBJECTIVE
Expressway
Normal way
Street
For each type the main function can generate roads with different curvature,
banking, slope and surface.
The main function, and the other functions responsible for generate random
roads are located in the following address:
\OpenCRG.1.1.0\matlab\test\RandomRoads.
Figure 3: 45 road.
Figure 4: 15 curve
Curve roads are also divided in three types, each type has an angle range
according to the road type.
The road type is selected in the main function, and a random degree between
the angle ranges will be chosen. To convert the degree value in R(n)s, R(n)e (section
starting and ending radius) , the function tabela is used.
3.2 Banking of Roads
To generate banked roads, the function genbank is used by the main function.
The banking is divided according to the road type:
The angle value is not integer, so, it is possible to have infinite different
possibilities between 0 and 1, for example.
The maximum peak size is showed in the figure 6, with the red and blue
colors.
The random roads are generated in the main function. In the main function the
function genrslope, genrcurv, genbank are called, making the possibility to generate
roads with more than one characteristic.
When the main function starts, some menu will appear to help in the road
generation.
In the first menu it is possible to select the road type.
ex.: