This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CARLA 0.9.X API Proposal | |
# ======================== | |
# | |
# Core concepts: | |
# | |
# - World: a loaded map. | |
# - Blueprint: specifications for creating an actor. | |
# - Actor: anything that plays a role in the simulation. | |
# - Sensor: an actor that produces a data stream. | |
# - Agent: an AI that controls an actor. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of context manager to ease working with CARLA Simulator in synchronous | |
# mode. Creates an object that synchronizes the data of every sensor. | |
# ============================================================================== | |
# -- Usage example ------------------------------------------------------------- | |
# ============================================================================== | |
import carla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma | |
// de Barcelona (UAB). | |
// | |
// This work is licensed under the terms of the MIT license. | |
// For a copy, see <https://opensource.org/licenses/MIT>. | |
#pragma once | |
#include "carla/rpc/ActorId.h" | |
#include "carla/sensor/data/Array.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdint> | |
#include <string_view> | |
/// Trim leading chars_to_trim from str. | |
constexpr std::string_view ltrim( | |
const std::string_view str, | |
const std::string_view chars_to_trim = " \t\n\r") | |
{ | |
if (const auto pos = str.find_first_not_of(chars_to_trim); pos != std::string_view::npos) | |
{ |