CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
rpc
OpendriveGenerationParameters.h
浏览该文件的文档.
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
15
struct
OpendriveGenerationParameters
{
16
OpendriveGenerationParameters
(){}
17
OpendriveGenerationParameters
(
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;
39
float
simplification_percentage
= 20.0f;
40
bool
smooth_junctions
=
true
;
41
bool
enable_mesh_visibility
=
true
;
42
bool
enable_pedestrian_navigation
=
true
;
43
44
MSGPACK_DEFINE_ARRAY
(
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
}
MsgPack.h
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
carla::rpc::OpendriveGenerationParameters
Seting for map generation from opendrive without additional geometry
Definition
OpendriveGenerationParameters.h:15
carla::rpc::OpendriveGenerationParameters::vertex_width_resolution
double vertex_width_resolution
Definition
OpendriveGenerationParameters.h:38
carla::rpc::OpendriveGenerationParameters::max_road_length
double max_road_length
Definition
OpendriveGenerationParameters.h:35
carla::rpc::OpendriveGenerationParameters::OpendriveGenerationParameters
OpendriveGenerationParameters()
Definition
OpendriveGenerationParameters.h:16
carla::rpc::OpendriveGenerationParameters::smooth_junctions
bool smooth_junctions
Definition
OpendriveGenerationParameters.h:40
carla::rpc::OpendriveGenerationParameters::wall_height
double wall_height
Definition
OpendriveGenerationParameters.h:36
carla::rpc::OpendriveGenerationParameters::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(vertex_distance, max_road_length, wall_height, additional_width, smooth_junctions, enable_mesh_visibility, enable_pedestrian_navigation)
carla::rpc::OpendriveGenerationParameters::vertex_distance
double vertex_distance
Definition
OpendriveGenerationParameters.h:34
carla::rpc::OpendriveGenerationParameters::OpendriveGenerationParameters
OpendriveGenerationParameters(double v_distance, double max_road_len, double w_height, double a_width, bool smooth_junc, bool e_visibility, bool e_pedestrian)
Definition
OpendriveGenerationParameters.h:17
carla::rpc::OpendriveGenerationParameters::enable_mesh_visibility
bool enable_mesh_visibility
Definition
OpendriveGenerationParameters.h:41
carla::rpc::OpendriveGenerationParameters::simplification_percentage
float simplification_percentage
Definition
OpendriveGenerationParameters.h:39
carla::rpc::OpendriveGenerationParameters::enable_pedestrian_navigation
bool enable_pedestrian_navigation
Definition
OpendriveGenerationParameters.h:42
carla::rpc::OpendriveGenerationParameters::additional_width
double additional_width
Definition
OpendriveGenerationParameters.h:37
制作者
1.10.0