From dee22b138d292ddc54152cf9ab894f164008ed00 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 29 Jul 2024 17:30:41 +0200 Subject: [PATCH] Added OpendriveGenerationParameters.__init__ --- Docs/python_api.md | 14 +++++++++++++- PythonAPI/docs/client.yml | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/Docs/python_api.md b/Docs/python_api.md index ac3248830..b8c231fe3 100644 --- a/Docs/python_api.md +++ b/Docs/python_api.md @@ -1845,7 +1845,19 @@ If __True__, the mesh at junctions will be smoothed to prevent issues where road - **enable_mesh_visibility** (_bool_) If __True__, the road mesh will be rendered. Setting this to __False__ should reduce the rendering overhead. __Default is `True`__. - **enable_pedestrian_navigation** (_bool_) -If __True__, Pedestrian navigation will be enabled using Recast tool. For very large maps it is recomended to disable this option. __Default is `True`__. +If __True__, Pedestrian navigation will be enabled using Recast tool. For very large maps it is recommended to disable this option. __Default is `True`__. + +### Methods +- **\__init__**(**self**, **vertex_distance**=2.0, **max_road_length**=50.0, **wall_height**=1.0, **additional_width**=0.6, **smooth_junctions**=True, **enable_mesh_visibility**=True, **enable_pedestrian_navigation**=True) +OpendriveGenerationParameters constructor. + - **Parameters:** + - `vertex_distance` (_float - meters_) + - `max_road_length` (_float - meters_) + - `wall_height` (_float - meters_) + - `additional_width` (_float - meters_) + - `smooth_junctions` (_bool_) + - `enable_mesh_visibility` (_bool_) + - `enable_pedestrian_navigation` (_bool_) --- diff --git a/PythonAPI/docs/client.yml b/PythonAPI/docs/client.yml index 2977c9337..e8a811162 100644 --- a/PythonAPI/docs/client.yml +++ b/PythonAPI/docs/client.yml @@ -793,4 +793,36 @@ - var_name: enable_pedestrian_navigation type: bool doc: > - If __True__, Pedestrian navigation will be enabled using Recast tool. For very large maps it is recomended to disable this option. __Default is `True`__. + If __True__, Pedestrian navigation will be enabled using Recast tool. For very large maps it is recommended to disable this option. __Default is `True`__. + # - METHODS ---------------------------- + methods: + - def_name: __init__ + params: + - param_name: vertex_distance + type: float + param_units: meters + default: 2.0 + - param_name: max_road_length + type: float + param_units: meters + default: 50.0 + - param_name: wall_height + type: float + param_units: meters + default: 1.0 + - param_name: additional_width + type: float + param_units: meters + default: 0.6 + - param_name: smooth_junctions + type: bool + default: true + - param_name: enable_mesh_visibility + type: bool + default: true + - param_name: enable_pedestrian_navigation + type: bool + default: true + doc: > + OpendriveGenerationParameters constructor +