CARLA
OpendriveGenerationParameters.h
Go to the documentation of this file.
1 // Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #pragma once
8 
9 #include "carla/MsgPack.h"
10 
11 namespace carla {
12 namespace rpc {
13 
14  /// Seting for map generation from opendrive without additional geometry
18  double v_distance,
19  double max_road_len,
20  double w_height,
21  double a_width,
22  bool smooth_junc,
23  bool e_visibility,
24  bool e_pedestrian)
25  : vertex_distance(v_distance),
26  max_road_length(max_road_len),
27  wall_height(w_height),
28  additional_width(a_width),
29  smooth_junctions(smooth_junc),
30  enable_mesh_visibility(e_visibility),
31  enable_pedestrian_navigation(e_pedestrian)
32  {}
33 
34  double vertex_distance = 2.0;
35  double max_road_length = 50.0;
36  double wall_height = 1.0;
37  double additional_width = 0.6;
38  double vertex_width_resolution = 4.0f;
40  bool smooth_junctions = true;
43 
45  vertex_distance,
46  max_road_length,
47  wall_height,
48  additional_width,
49  smooth_junctions,
50  enable_mesh_visibility,
51  enable_pedestrian_navigation);
52  };
53 
54 }
55 }
Seting for map generation from opendrive without additional geometry.
MSGPACK_DEFINE_ARRAY(vertex_distance, max_road_length, wall_height, additional_width, smooth_junctions, enable_mesh_visibility, enable_pedestrian_navigation)
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:133
OpendriveGenerationParameters(double v_distance, double max_road_len, double w_height, double a_width, bool smooth_junc, bool e_visibility, bool e_pedestrian)