CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
rpc
DebugShape.h
浏览该文件的文档.
1
// Copyright (c) 2017 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
#include "
carla/MsgPackAdaptors.h
"
11
#include "
carla/geom/BoundingBox.h
"
12
#include "
carla/geom/Location.h
"
13
#include "
carla/geom/Rotation.h
"
14
#include "
carla/rpc/Color.h
"
15
16
#ifdef _MSC_VER
17
#pragma warning(push)
18
#pragma warning(disable:4583)
19
#pragma warning(disable:4582)
20
#include <boost/variant2/variant.hpp>
21
#pragma warning(pop)
22
#else
23
#include <boost/variant2/variant.hpp>
24
#endif
25
26
namespace
carla
{
27
namespace
rpc {
28
29
class
DebugShape
{
30
public
:
31
32
struct
Point
{
33
geom::Location
location
;
34
float
size
;
35
MSGPACK_DEFINE_ARRAY
(
location
,
size
);
36
};
37
38
struct
HUDPoint
{
39
geom::Location
location
;
40
float
size
;
41
MSGPACK_DEFINE_ARRAY
(
location
,
size
);
42
};
43
44
struct
Line
{
45
geom::Location
begin
;
46
geom::Location
end
;
47
float
thickness
;
48
MSGPACK_DEFINE_ARRAY
(
begin
,
end
,
thickness
);
49
};
50
51
struct
HUDLine
{
52
geom::Location
begin
;
53
geom::Location
end
;
54
float
thickness
;
55
MSGPACK_DEFINE_ARRAY
(
begin
,
end
,
thickness
);
56
};
57
58
struct
Arrow
{
59
Line
line
;
60
float
arrow_size
;
61
MSGPACK_DEFINE_ARRAY
(
line
,
arrow_size
);
62
};
63
64
struct
HUDArrow
{
65
HUDLine
line
;
66
float
arrow_size
;
67
MSGPACK_DEFINE_ARRAY
(
line
,
arrow_size
);
68
};
69
70
struct
Box
{
71
geom::BoundingBox
box
;
72
geom::Rotation
rotation
;
73
float
thickness
;
74
MSGPACK_DEFINE_ARRAY
(
box
,
rotation
,
thickness
);
75
};
76
77
struct
HUDBox
{
78
geom::BoundingBox
box
;
79
geom::Rotation
rotation
;
80
float
thickness
;
81
MSGPACK_DEFINE_ARRAY
(
box
,
rotation
,
thickness
);
82
};
83
84
struct
String
{
85
geom::Location
location
;
86
std::string
text
;
87
bool
draw_shadow
;
88
MSGPACK_DEFINE_ARRAY
(
location
,
text
,
draw_shadow
);
89
};
90
91
boost::variant2::variant<Point, Line, Arrow, Box, String, HUDPoint, HUDLine, HUDArrow, HUDBox>
primitive
;
92
93
Color
color
= {255u, 0u, 0u};
94
95
float
life_time
= -1.0f;
96
97
bool
persistent_lines
=
true
;
98
99
MSGPACK_DEFINE_ARRAY
(
primitive
,
color
,
life_time
,
persistent_lines
);
100
};
101
102
}
// namespace rpc
103
}
// namespace carla
BoundingBox.h
MsgPackAdaptors.h
MsgPack.h
Rotation.h
carla::geom::BoundingBox
Definition
LibCarla/source/carla/geom/BoundingBox.h:26
carla::geom::Location
Definition
geom/Location.h:22
carla::geom::Rotation
Definition
Rotation.h:22
carla::rpc::Color
Definition
rpc/Color.h:22
carla::rpc::DebugShape
Definition
DebugShape.h:29
carla::rpc::DebugShape::life_time
float life_time
Definition
DebugShape.h:95
carla::rpc::DebugShape::primitive
boost::variant2::variant< Point, Line, Arrow, Box, String, HUDPoint, HUDLine, HUDArrow, HUDBox > primitive
Definition
DebugShape.h:91
carla::rpc::DebugShape::persistent_lines
bool persistent_lines
Definition
DebugShape.h:97
carla::rpc::DebugShape::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(primitive, color, life_time, persistent_lines)
carla::rpc::DebugShape::color
Color color
Definition
DebugShape.h:93
Location.h
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
Color.h
carla::rpc::DebugShape::Arrow
Definition
DebugShape.h:58
carla::rpc::DebugShape::Arrow::line
Line line
Definition
DebugShape.h:59
carla::rpc::DebugShape::Arrow::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(line, arrow_size)
carla::rpc::DebugShape::Arrow::arrow_size
float arrow_size
Definition
DebugShape.h:60
carla::rpc::DebugShape::Box
Definition
DebugShape.h:70
carla::rpc::DebugShape::Box::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(box, rotation, thickness)
carla::rpc::DebugShape::Box::rotation
geom::Rotation rotation
Definition
DebugShape.h:72
carla::rpc::DebugShape::Box::thickness
float thickness
Definition
DebugShape.h:73
carla::rpc::DebugShape::Box::box
geom::BoundingBox box
Definition
DebugShape.h:71
carla::rpc::DebugShape::HUDArrow
Definition
DebugShape.h:64
carla::rpc::DebugShape::HUDArrow::arrow_size
float arrow_size
Definition
DebugShape.h:66
carla::rpc::DebugShape::HUDArrow::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(line, arrow_size)
carla::rpc::DebugShape::HUDArrow::line
HUDLine line
Definition
DebugShape.h:65
carla::rpc::DebugShape::HUDBox
Definition
DebugShape.h:77
carla::rpc::DebugShape::HUDBox::thickness
float thickness
Definition
DebugShape.h:80
carla::rpc::DebugShape::HUDBox::box
geom::BoundingBox box
Definition
DebugShape.h:78
carla::rpc::DebugShape::HUDBox::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(box, rotation, thickness)
carla::rpc::DebugShape::HUDBox::rotation
geom::Rotation rotation
Definition
DebugShape.h:79
carla::rpc::DebugShape::HUDLine
Definition
DebugShape.h:51
carla::rpc::DebugShape::HUDLine::end
geom::Location end
Definition
DebugShape.h:53
carla::rpc::DebugShape::HUDLine::begin
geom::Location begin
Definition
DebugShape.h:52
carla::rpc::DebugShape::HUDLine::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(begin, end, thickness)
carla::rpc::DebugShape::HUDLine::thickness
float thickness
Definition
DebugShape.h:54
carla::rpc::DebugShape::HUDPoint
Definition
DebugShape.h:38
carla::rpc::DebugShape::HUDPoint::location
geom::Location location
Definition
DebugShape.h:39
carla::rpc::DebugShape::HUDPoint::size
float size
Definition
DebugShape.h:40
carla::rpc::DebugShape::HUDPoint::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(location, size)
carla::rpc::DebugShape::Line
Definition
DebugShape.h:44
carla::rpc::DebugShape::Line::end
geom::Location end
Definition
DebugShape.h:46
carla::rpc::DebugShape::Line::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(begin, end, thickness)
carla::rpc::DebugShape::Line::thickness
float thickness
Definition
DebugShape.h:47
carla::rpc::DebugShape::Line::begin
geom::Location begin
Definition
DebugShape.h:45
carla::rpc::DebugShape::Point
Definition
DebugShape.h:32
carla::rpc::DebugShape::Point::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(location, size)
carla::rpc::DebugShape::Point::size
float size
Definition
DebugShape.h:34
carla::rpc::DebugShape::Point::location
geom::Location location
Definition
DebugShape.h:33
carla::rpc::DebugShape::String
Definition
DebugShape.h:84
carla::rpc::DebugShape::String::text
std::string text
Definition
DebugShape.h:86
carla::rpc::DebugShape::String::MSGPACK_DEFINE_ARRAY
MSGPACK_DEFINE_ARRAY(location, text, draw_shadow)
carla::rpc::DebugShape::String::draw_shadow
bool draw_shadow
Definition
DebugShape.h:87
carla::rpc::DebugShape::String::location
geom::Location location
Definition
DebugShape.h:85
制作者
1.10.0