CARLA
 
载入中...
搜索中...
未找到
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"
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
26namespace carla {
27namespace rpc {
28
29 class DebugShape {
30 public:
31
37
43
50
57
63
69
76
83
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
100 };
101
102} // namespace rpc
103} // namespace carla
boost::variant2::variant< Point, Line, Arrow, Box, String, HUDPoint, HUDLine, HUDArrow, HUDBox > primitive
Definition DebugShape.h:91
MSGPACK_DEFINE_ARRAY(primitive, color, life_time, persistent_lines)
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133
MSGPACK_DEFINE_ARRAY(line, arrow_size)
MSGPACK_DEFINE_ARRAY(box, rotation, thickness)
geom::BoundingBox box
Definition DebugShape.h:71
MSGPACK_DEFINE_ARRAY(line, arrow_size)
MSGPACK_DEFINE_ARRAY(box, rotation, thickness)
MSGPACK_DEFINE_ARRAY(begin, end, thickness)
MSGPACK_DEFINE_ARRAY(location, size)
MSGPACK_DEFINE_ARRAY(begin, end, thickness)
MSGPACK_DEFINE_ARRAY(location, size)
MSGPACK_DEFINE_ARRAY(location, text, draw_shadow)