esp::assets namespace

Asset management namespace.

Classes

template<typename T>
struct Asset
Wrapper for all valid asset types.
struct AssetInfo
AssetInfo stores information necessary to identify and load an Asset.
class BaseMesh
Base class for storing mesh asset data including geometry and topology.
struct CollisionMeshData
Provides references to geometry and topology for an individual component of an asset for use in generating collision shapes for simulation.
class GenericMeshData
Mesh data storage and loading for gltf format assets. See ResourceManager::loadGeneralMeshData.
class GenericSemanticMeshData
Mesh data storage and loading for ply format assets used primarily for Semantic Scene meshes, including manage vertex colors and vertex IDs for semantic visualization and rendering. See ResourceManager::loadRenderAssetIMesh.
struct MeshData
Raw mesh data storage.
struct MeshMetaData
Stores meta data for an asset possibly containing multiple meshes, materials, textures, and a hierarchy of component transform relationships.
struct MeshTransformNode
Stores meta data for objects with a multi-component transformation hierarchy.
struct PhongMaterialColor
class PTexMeshData
struct RenderAssetInstanceCreationInfo
class ResourceManager
Singleton class responsible for loading and managing common simulator assets such as meshes, textures, and materials.

Enums

enum class AssetType { UNKNOWN, MP3D_MESH, INSTANCE_MESH, FRL_PTEX_MESH, UNKNOWN2, NAVMESH, PRIMITIVE }
Supported Asset types.
enum SupportedMeshType { NOT_DEFINED = -1, INSTANCE_MESH = 0, INSTANCE_MESH, PTEX_MESH = 1, GENERIC_MESH = 2, NUM_SUPPORTED_MESH_TYPES = 3 }
Enumeration of mesh types supported by the simulator.

Functions

auto operator==(const PhongMaterialColor& a, const PhongMaterialColor& b) -> bool
auto operator!=(const PhongMaterialColor& a, const PhongMaterialColor& b) -> bool
auto operator==(const AssetInfo& a, const AssetInfo& b) -> bool
auto operator!=(const AssetInfo& a, const AssetInfo& b) -> bool
auto espLoggingSubsystem() -> logging::Subsystem

Variables

static const std::string EMPTY_SCENE

Enum documentation

enum class esp::assets::AssetType

Supported Asset types.

enum esp::assets::SupportedMeshType

Enumeration of mesh types supported by the simulator.

Each entry suggests a derived class of BaseMesh implementing the specific storage and processing interface to accommodate differing asset formats. Identifies the derived variant of this object.

Enumerators
NOT_DEFINED

Undefined mesh types are created programmatically without a specific format or loaded from an unknown format. Support for this type and behavior is likely limited. Object type is likely BaseMesh.

INSTANCE_MESH

Instance meshes loaded from sources including segmented object identifier data (e.g. semantic data: chair, table, etc...). Sources include .ply files and reconstructions of Matterport scans. Object is likely of type GenericSemanticMeshData.

INSTANCE_MESH

PTEX_MESH

Meshes loaded from Replica dataset. Object is likely type PTexMeshData.

GENERIC_MESH

Meshes loaded from gltf format (i.e. .glb file), or instances of Magnum Primitives. Object is likely type GenericMeshData.

NUM_SUPPORTED_MESH_TYPES

Number of enumerated supported types.

Function documentation

bool esp::assets::operator==(const PhongMaterialColor& a, const PhongMaterialColor& b)

bool esp::assets::operator!=(const PhongMaterialColor& a, const PhongMaterialColor& b)

bool esp::assets::operator==(const AssetInfo& a, const AssetInfo& b)

bool esp::assets::operator!=(const AssetInfo& a, const AssetInfo& b)

Variable documentation

static const std::string esp::assets::EMPTY_SCENE