Idle iteration tbf

This commit is contained in:
sergi-e 2020-04-14 17:30:51 +02:00 committed by Marc Garcia Puig
parent 9d3d97377b
commit 49b6e48767
2 changed files with 11 additions and 9 deletions

View File

@ -18,10 +18,9 @@ The resulting mesh describes the road definition in a minimalistic manner. All t
Traffic lights, stops and yields will be generated on the fly, as happens when using any map. Pedestrians will navigate over the sidewalks and crosswalks that appear in the map. All of these elements, and every detail on the road, are based on the OpenDRIVE file. As the standalone mode uses the `.xodr` directly, any issues in it will propagate to the simulation. This could be an issue especially at junctions, where many lanes are mixed.
* OpenDRIVE maps created with RoadRunner present some issues related to tilted junction ??
* Lateral slope for roads is not supported yet ??
* OpenDRIVE maps created with RoadRunner present some issues related to tilted junction ---> ESTE ES EL PROBLEMA DE LAS JUNCTIONS? SOLUCIONADO?
* No lateral slope.
* The sidewalks height is currently hardcoded. This ensures collisions with them are detected even if the map definition does not include this field ??
* What .xml ??
!!! Important
It is especially important to double check the OpenDRIVE file. Any issues in it will propagate when running the simulation.
@ -35,12 +34,12 @@ In order to open an OpenDRIVE file, the Python API includes now the method [`cli
* __`opendrive`__ is the content of the OpenDRIVE file parsed as a string.
* __`parameters`__ is a [carla.OpendriveGenerationParameters](python_api.md#carla.OpendriveGenerationParameters) containing settings for the generation of the mesh.
* `vertex_distance` is the distance between the vertices of the mesh. --> The bigger the more inaccuracies?? The smallest, the more detailed but heavier ??
* `max_road_length`
* `wall_height` states the height of the additional walls created on the boundaries of the road. These prevent vehicles from falling to the void.
* `additional_width` is an small width increment applied to the junction lanes. This is a safety measure to prevent vehicles from falling.
* `smooth_junctions` if __True__, the mesh at junctions will be smoothed, to prevent some inaccuracies that may occur when various lanes meet. --> And why can I choose to disable them??
* `enable_mesh_visibility` if __True__, the mesh will be rendered. --> If False? Vehicles rendered, no rendering mode or what?
* __`vertex_distance`__ is the distance between the vertices of the mesh. The bigger, the distance, the more inaccurate the mesh will be. However, if the distance is too small, the resulting mesh will be too heavy to work with.
* __`max_road_length`__ is the maximum length of a portion of the mesh. The mesh is divide in portions to reduce rendering overhead. If a portion is not visible, UE will not render it. The smaller the portions, the more probably they are discarded. However, if the portions are too small, UE will have too many objects to manage, and performance will be affected too.
* __`wall_height`__ states the height of the additional walls created on the boundaries of the road. These prevent vehicles from falling to the void.
* __`additional_width`__ is an small width increment applied to the junction lanes. This is a safety measure to prevent vehicles from falling.
* __`smooth_junctions`__ if __True__, some information of the OpenDRIVE will be reinterpreted to smooth the final mesh at junctions. This is done to prevent some inaccuracies that may occur when various lanes meet. If set to __False__, the mesh will be generated exactly as described in the OpenDRIVE.
* __`enable_mesh_visibility`__ if __False__, the mesh will not be rendered, which could save a lot of work to the simulator.
In order to easily test this feature, the `config.py` script in `PythonAPI/util/` has a new argument, `-x` or `--xodr-path`. This argument contains a string with the path to the `.xodr` file. If the mesh is generated with this script, the parameters used will always be the default ones.
@ -56,6 +55,9 @@ python3 config.py -x path/to/some/file.xodr
The generation of the mesh is the key element of this mode. The feature can only be successful if the resulting mesh is smooth and fits its definition perfectly. For that reason, this step is constantly being improved. In the last iterations, junctions have been polished to avoid inaccuracies that occur, especially where uneven lanes joined.
![opendrive_meshissue](img/opendrive_meshissue.png)
<div style="text-align: right"><i>When generating junction meshes, higher lanes tend to block the ones below them. <br>The parameter <code>smooth_junctions</code> avoids this kind of issue.</i></div>
Besides that, instead of creating the whole map as a unique mesh, different fragments are created. Working smaller prevents unexpected issues. Also, by dividing the mesh, not all of it has to be rendered at a time. This is a step towards a larger goal, where the feature will be able to generate huge maps.

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB