23 bool persistent_lines) {
24 const Shape shape{primitive, color, life_time, persistent_lines};
25 episode.
Lock()->DrawDebugShape(shape);
33 bool persistent_lines) {
44 bool persistent_lines) {
56 bool persistent_lines) {
68 bool persistent_lines) {
75 const std::string &text,
79 bool persistent_lines) {
void ClearDebugString()
Clear every persistent debug string currently shown in the HUD.
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 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 ClearDebugShape()
Clear every persistent debug shape (lines, points, boxes, arrows) previously drawn from this world.
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)
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)
SharedPtrType Lock() const
Same as TryLock but never return nullptr.
Euler angles of a rotation in CARLA's / Unreal's left-handed frame: x forward, y right,...
static void DrawShape(detail::EpisodeProxy &episode, const T &primitive, rpc::Color color, float life_time, bool persistent_lines)
This file contains definitions of common data structures used in traffic manager.