UnitySensors
UnitySensors.Sensor.Camera.DepthCameraSensor Class Reference
Inheritance diagram for UnitySensors.Sensor.Camera.DepthCameraSensor:
Collaboration diagram for UnitySensors.Sensor.Camera.DepthCameraSensor:

Protected Member Functions

override void Init ()
 
override void UpdateSensor ()
 
override void OnSensorDestroy ()
 
- Protected Member Functions inherited from UnitySensors.Sensor.UnitySensor
virtual void Update ()
 

Protected Attributes

float _minRange = 0.05f
 
float _maxRange = 100.0f
 
- Protected Attributes inherited from UnitySensors.Sensor.Camera.CameraSensor
Vector2Int _resolution = new Vector2Int(640, 480)
 
float _fov = 30.0f
 

Properties

override UnityEngine.Camera m_camera [get]
 
Texture2D texture0 [get]
 
Texture2D texture1 [get]
 
PointCloud< PointXYZ > pointCloud [get]
 
int pointsNum [get]
 
- Properties inherited from UnitySensors.Sensor.Camera.CameraSensor
abstract UnityEngine.Camera m_camera [get]
 
- Properties inherited from UnitySensors.Sensor.UnitySensor
float dt [get]
 
float time [get]
 
- Properties inherited from UnitySensors.Interface.Std.ITimeInterface
float time [get]
 
- Properties inherited from UnitySensors.Interface.Sensor.ICameraInterface
Camera m_camera [get]
 
- Properties inherited from UnitySensors.Interface.Sensor.ITextureInterface
Texture2D texture0 [get]
 
Texture2D texture1 [get]
 
- Properties inherited from UnitySensors.Interface.Sensor.IPointCloudInterface< PointXYZ >
PointCloud< T > pointCloud [get]
 
int pointsNum [get]
 

Private Member Functions

void SetupDirections ()
 
void SetupJob ()
 
bool LoadTexture ()
 
void OnRenderImage (RenderTexture source, RenderTexture dest)
 

Private Attributes

float _gaussianNoiseSigma = 0.0f
 
UnityEngine.Camera _camera
 
RenderTexture _rt = null
 
Texture2D _texture
 
Material _mat
 
JobHandle _jobHandle
 
IUpdateGaussianNoisesJob _updateGaussianNoisesJob
 
ITextureToPointsJob _textureToPointsJob
 
NativeArray< float > _noises
 
NativeArray< float3 > _directions
 
PointCloud< PointXYZ > _pointCloud
 
int _pointsNum
 

Additional Inherited Members

- Public Member Functions inherited from UnitySensors.Sensor.UnitySensor
delegate void OnSensorUpdated ()
 
- Public Attributes inherited from UnitySensors.Sensor.UnitySensor
OnSensorUpdated onSensorUpdated
 

Member Function Documentation

◆ Init()

override void UnitySensors.Sensor.Camera.DepthCameraSensor.Init ( )
protectedvirtual

Implements UnitySensors.Sensor.UnitySensor.

Here is the call graph for this function:

◆ LoadTexture()

bool UnitySensors.Sensor.Camera.DepthCameraSensor.LoadTexture ( )
private
Here is the caller graph for this function:

◆ OnRenderImage()

void UnitySensors.Sensor.Camera.DepthCameraSensor.OnRenderImage ( RenderTexture  source,
RenderTexture  dest 
)
private

◆ OnSensorDestroy()

override void UnitySensors.Sensor.Camera.DepthCameraSensor.OnSensorDestroy ( )
protectedvirtual

Implements UnitySensors.Sensor.UnitySensor.

Here is the call graph for this function:

◆ SetupDirections()

void UnitySensors.Sensor.Camera.DepthCameraSensor.SetupDirections ( )
private
Here is the caller graph for this function:

◆ SetupJob()

void UnitySensors.Sensor.Camera.DepthCameraSensor.SetupJob ( )
private
Here is the caller graph for this function:

◆ UpdateSensor()

override void UnitySensors.Sensor.Camera.DepthCameraSensor.UpdateSensor ( )
protectedvirtual

Implements UnitySensors.Sensor.UnitySensor.

Here is the call graph for this function:

Member Data Documentation

◆ _camera

UnityEngine.Camera UnitySensors.Sensor.Camera.DepthCameraSensor._camera
private

◆ _directions

NativeArray<float3> UnitySensors.Sensor.Camera.DepthCameraSensor._directions
private

◆ _gaussianNoiseSigma

float UnitySensors.Sensor.Camera.DepthCameraSensor._gaussianNoiseSigma = 0.0f
private

◆ _jobHandle

JobHandle UnitySensors.Sensor.Camera.DepthCameraSensor._jobHandle
private

◆ _mat

Material UnitySensors.Sensor.Camera.DepthCameraSensor._mat
private

◆ _maxRange

float UnitySensors.Sensor.Camera.DepthCameraSensor._maxRange = 100.0f
protected

◆ _minRange

float UnitySensors.Sensor.Camera.DepthCameraSensor._minRange = 0.05f
protected

◆ _noises

NativeArray<float> UnitySensors.Sensor.Camera.DepthCameraSensor._noises
private

◆ _pointCloud

PointCloud<PointXYZ> UnitySensors.Sensor.Camera.DepthCameraSensor._pointCloud
private

◆ _pointsNum

int UnitySensors.Sensor.Camera.DepthCameraSensor._pointsNum
private

◆ _rt

RenderTexture UnitySensors.Sensor.Camera.DepthCameraSensor._rt = null
private

◆ _texture

Texture2D UnitySensors.Sensor.Camera.DepthCameraSensor._texture
private

◆ _textureToPointsJob

ITextureToPointsJob UnitySensors.Sensor.Camera.DepthCameraSensor._textureToPointsJob
private

◆ _updateGaussianNoisesJob

IUpdateGaussianNoisesJob UnitySensors.Sensor.Camera.DepthCameraSensor._updateGaussianNoisesJob
private

Property Documentation

◆ m_camera

override UnityEngine.Camera UnitySensors.Sensor.Camera.DepthCameraSensor.m_camera
get

◆ pointCloud

PointCloud<PointXYZ> UnitySensors.Sensor.Camera.DepthCameraSensor.pointCloud
get

◆ pointsNum

int UnitySensors.Sensor.Camera.DepthCameraSensor.pointsNum
get

◆ texture0

Texture2D UnitySensors.Sensor.Camera.DepthCameraSensor.texture0
get

◆ texture1

Texture2D UnitySensors.Sensor.Camera.DepthCameraSensor.texture1
get

The documentation for this class was generated from the following file: