CARLA
 
载入中...
搜索中...
未找到
DebugHelper.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
11#include "carla/geom/Location.h"
12#include "carla/geom/Rotation.h"
14
15namespace carla {
16namespace client {
17
19 public:
20
22
24 : _episode(std::move(episode)) {}
25
26 void DrawPoint(
27 const geom::Location &location,
28 float size = 0.1f,
29 Color color = Color{255u, 0u, 0u},
30 float life_time = -1.0f,
31 bool persistent_lines = true);
32
33 void DrawHUDPoint(
34 const geom::Location &location,
35 float size = 0.1f,
36 Color color = Color{255u, 0u, 0u},
37 float life_time = -1.0f,
38 bool persistent_lines = true);
39
40 void DrawLine(
41 const geom::Location &begin,
42 const geom::Location &end,
43 float thickness = 0.1f,
44 Color color = Color{255u, 0u, 0u},
45 float life_time = -1.0f,
46 bool persistent_lines = true);
47
48 void DrawHUDLine(
49 const geom::Location &begin,
50 const geom::Location &end,
51 float thickness = 1.0f,
52 Color color = Color{225u, 0u, 0u},
53 float life_time = -1.0f,
54 bool presistent_lines = true);
55
56 void DrawArrow(
57 const geom::Location &begin,
58 const geom::Location &end,
59 float thickness = 0.1f,
60 float arrow_size = 0.1f,
61 Color color = Color{255u, 0u, 0u},
62 float life_time = -1.0f,
63 bool persistent_lines = true);
64
65 void DrawHUDArrow(
66 const geom::Location &begin,
67 const geom::Location &end,
68 float thickness = 0.1f,
69 float arrow_size = 0.1f,
70 Color color = Color{255u, 0u, 0u},
71 float life_time = -1.0f,
72 bool persistent_lines = true);
73
74 void DrawBox(
75 const geom::BoundingBox &box,
76 const geom::Rotation &rotation,
77 float thickness = 0.1f,
78 Color color = Color{255u, 0u, 0u},
79 float life_time = -1.0f,
80 bool persistent_lines = true);
81
82 void DrawHUDBox(
83 const geom::BoundingBox &box,
84 const geom::Rotation &rotation,
85 float thickness = 0.1f,
86 Color color = Color{255u, 0u, 0u},
87 float life_time = -1.0f,
88 bool persistent_lines = true);
89
90 void DrawString(
91 const geom::Location &location,
92 const std::string &text,
93 bool draw_shadow = false,
94 Color color = Color{255u, 0u, 0u},
95 float life_time = -1.0f,
96 bool persistent_lines = true);
97
98 private:
99
101 };
102
103} // namespace client
104} // namespace carla
void DrawHUDArrow(const geom::Location &begin, const geom::Location &end, float thickness=0.1f, float arrow_size=0.1f, Color color=Color{255u, 0u, 0u}, float life_time=-1.0f, bool persistent_lines=true)
void DrawString(const geom::Location &location, const std::string &text, bool draw_shadow=false, Color color=Color{255u, 0u, 0u}, float life_time=-1.0f, bool persistent_lines=true)
void DrawLine(const geom::Location &begin, const geom::Location &end, float thickness=0.1f, Color color=Color{255u, 0u, 0u}, float life_time=-1.0f, bool persistent_lines=true)
detail::EpisodeProxy _episode
void DrawHUDPoint(const geom::Location &location, float size=0.1f, Color color=Color{255u, 0u, 0u}, float life_time=-1.0f, bool persistent_lines=true)
void DrawHUDLine(const geom::Location &begin, const geom::Location &end, float thickness=1.0f, Color color=Color{225u, 0u, 0u}, float life_time=-1.0f, bool presistent_lines=true)
void DrawHUDBox(const geom::BoundingBox &box, const geom::Rotation &rotation, float thickness=0.1f, Color color=Color{255u, 0u, 0u}, float life_time=-1.0f, bool persistent_lines=true)
void DrawArrow(const geom::Location &begin, const geom::Location &end, float thickness=0.1f, float arrow_size=0.1f, Color color=Color{255u, 0u, 0u}, float life_time=-1.0f, bool persistent_lines=true)
void DrawPoint(const geom::Location &location, float size=0.1f, Color color=Color{255u, 0u, 0u}, float life_time=-1.0f, bool persistent_lines=true)
DebugHelper(detail::EpisodeProxy episode)
Definition DebugHelper.h:23
void DrawBox(const geom::BoundingBox &box, const geom::Rotation &rotation, float thickness=0.1f, Color color=Color{255u, 0u, 0u}, float life_time=-1.0f, bool persistent_lines=true)
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133