esp::assets namespace

Asset management namespace.

Contents

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 GenericInstanceMeshData
class GltfMeshData
Mesh data storage and loading for gltf format assets. See ResourceManager::loadGeneralMeshData.
struct MeshData
Raw mesh data storage.
struct MeshMetaData
Stores meta data for an asset possibly containing multiple meshes, materials, textures, and a heirarchy of component transform relationships.
struct MeshTransformNode
Stores meta data for objects with a multi-component transformation heirarchy.
class Mp3dInstanceMeshData
class PhysicsManagerAttributes
attributes for a single physics manager
class PhysicsObjectAttributes
Specific Attributes instance which is constructed with a base set of physics object required attributes.
class PhysicsSceneAttributes
attributes for a single physical scene
class PTexMeshData
class ResourceManager
Singleton class responsible for loading and managing common simulator assets such as meshes, textures, and materials.

Enums

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

Functions

auto operator==(const AssetInfo& a, const AssetInfo& b) -> bool
auto operator!=(const AssetInfo& a, const AssetInfo& b) -> bool
void initAttributesBindings(pybind11::module& m)

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 accomodate 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 unkown 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 GenericInstanceMeshData or Mp3dInstanceMeshData.

INSTANCE_MESH

PTEX_MESH

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

GLTF_MESH

Meshes loaded from gltf format (i.e. .glb file). Object is likely type GltfMeshData.

NUM_SUPPORTED_MESH_TYPES

Number of enumerated supported types.

Function documentation

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

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

void esp::assets::initAttributesBindings(pybind11::module& m)

Variable documentation

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