esp::sensor::CubeMapSensorBase class

Base classes

class VisualSensor

Derived classes

class EquirectangularSensor
class FisheyeSensor

Constructors, destructors, conversion operators

~CubeMapSensorBase() defaulted override
destructor
CubeMapSensorBase(scene::SceneNode& cameraNode, const CubeMapSensorBaseSpec::ptr& spec) protected explicit
constructor NOTE: the status of the camera sensor is "valid" after construction, and user can use them immediately

Public functions

auto getRenderCamera() const -> gfx::RenderCamera* override
auto getProjectionMatrix() const -> Mn::Matrix4 override
Return this sensor's projection matrix.

Protected functions

auto getShaderKey() -> Magnum::ResourceKey pure virtual
template<typename T>
auto getShader() -> Magnum::Resource<gfx::CubeMapShaderBase, T>
auto renderToCubemapTexture(sim::Simulator& sim) -> bool
render the sense into cubemap textures
void drawWith(gfx::CubeMapShaderBase& shader)
draw the observation with the shader NOTE: assume the cubemap texture is already generated

Protected variables

CubeMapSensorBaseSpec::ptr cubeMapSensorBaseSpec_
gfx::CubeMapCamera* cubeMapCamera_
Corrade::Containers::Optional<esp::gfx::CubeMap> cubeMap_
Magnum::GL::Mesh mesh_
Magnum::ResourceManager<gfx::CubeMapShaderBase> cubeMapShaderBaseManager_
gfx::CubeMapShaderBase::Flags cubeMapShaderBaseFlags_

Function documentation

bool esp::sensor::CubeMapSensorBase::renderToCubemapTexture(sim::Simulator& sim) protected

render the sense into cubemap textures

Parameters
sim in th simulator instance