CARLA
Loading...
Searching...
No Matches
ContentPackInfo.h
Go to the documentation of this file.
1// Copyright (c) 2026 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
11#include <string>
12#include <vector>
13
14namespace carla {
15namespace rpc {
16
17 /// Description of a CARLA content pack known to the server (see
18 /// UCarlaContentPackManager). A pack is a content-only Unreal plugin cooked
19 /// against a base release, wrapped with a carla-pack.json manifest.
21 public:
22
23 ContentPackInfo() = default;
24
25 /// Pack name (== plugin name == mount point "/<name>/").
26 std::string name;
27
28 /// Pack version from the manifest.
29 std::string version;
30
31 /// Base release the pack was cooked against, e.g. "carla-0.10.2-Linux".
32 std::string base_release;
33
34 /// Absolute path of the pack directory on the server host.
35 std::string path;
36
37 /// True while the pack is mounted in the running server.
38 bool mounted = false;
39
40 /// Map names declared by the pack manifest (loadable with load_world).
41 std::vector<std::string> maps;
42
44 };
45
46} // namespace rpc
47} // namespace carla
Description of a CARLA content pack known to the server (see UCarlaContentPackManager).
std::vector< std::string > maps
Map names declared by the pack manifest (loadable with load_world).
std::string path
Absolute path of the pack directory on the server host.
std::string name
Pack name (== plugin name == mount point "/<name>/").
std::string base_release
Base release the pack was cooked against, e.g. "carla-0.10.2-Linux".
std::string version
Pack version from the manifest.
MSGPACK_DEFINE_ARRAY(name, version, base_release, path, mounted, maps)
bool mounted
True while the pack is mounted in the running server.
This file contains definitions of common data structures used in traffic manager.