UnitySensors
Loading...
Searching...
No Matches
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 IEnumerator UpdateSensor ()
 
override void OnSensorDestroy ()
 
- Protected Member Functions inherited from UnitySensors.Sensor.Camera.CameraSensor
override void Init ()
 
- Protected Member Functions inherited from UnitySensors.Sensor.UnitySensor
void Init ()
 
IEnumerator UpdateSensor ()
 
void OnSensorDestroy ()
 

Protected Attributes

float _minRange = 0.05f
 
float _maxRange = 100.0f
 
- Protected Attributes inherited from UnitySensors.Sensor.Camera.CameraSensor
RenderTexture _rt = null
 
UnityEngine.Camera _camera
 
Texture2D _texture
 

Properties

PointCloud< PointXYZpointCloud [get]
 
int pointsNum [get]
 
bool convertToPointCloud [get, set]
 
- Properties inherited from UnitySensors.Sensor.Camera.CameraSensor
UnityEngine.Camera m_camera [get]
 
virtual Texture2D texture0 [get]
 
virtual Texture2D texture1 [get]
 
float texture0FarClipPlane [get]
 
- Properties inherited from UnitySensors.Sensor.UnitySensor
float dt [get]
 
float time [get]
 
float frequency [get, set]
 
- Properties inherited from UnitySensors.Interface.Std.ITimeInterface
- Properties inherited from UnitySensors.Interface.Sensor.ICameraInterface
- Properties inherited from UnitySensors.Interface.Sensor.ITextureInterface
- Properties inherited from UnitySensors.Interface.Sensor.IPointCloudInterface< PointXYZ >
PointCloud< T > pointCloud [get]
 
int pointsNum [get]
 

Private Member Functions

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

Private Attributes

float _gaussianNoiseSigma = 0.0f
 
Material _depthCameraMat
 
bool _convertToPointCloud = false
 
TextureLoader _textureLoader
 
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
virtual IEnumerator UpdateSensorOnce ()
 
- Public Attributes inherited from UnitySensors.Sensor.UnitySensor
Action onSensorUpdateComplete
 
- Package Attributes inherited from UnitySensors.Sensor.Camera.CameraSensor
Vector2Int _resolution = new Vector2Int(640, 480)
 
float _fov = 30.0f
 
- Package Attributes inherited from UnitySensors.Sensor.UnitySensor
float _frequency = 10.0f
 

Member Function Documentation

◆ Init()

override void UnitySensors.Sensor.Camera.DepthCameraSensor.Init ( )
protected
Here is the call graph for this function:

◆ OnRenderImage()

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

◆ OnSensorDestroy()

override void UnitySensors.Sensor.Camera.DepthCameraSensor.OnSensorDestroy ( )
protected
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 IEnumerator UnitySensors.Sensor.Camera.DepthCameraSensor.UpdateSensor ( )
protected
Here is the call graph for this function:

Member Data Documentation

◆ _convertToPointCloud

bool UnitySensors.Sensor.Camera.DepthCameraSensor._convertToPointCloud = false
private

◆ _depthCameraMat

Material UnitySensors.Sensor.Camera.DepthCameraSensor._depthCameraMat
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

◆ _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

◆ _textureLoader

TextureLoader UnitySensors.Sensor.Camera.DepthCameraSensor._textureLoader
private

◆ _textureToPointsJob

ITextureToPointsJob UnitySensors.Sensor.Camera.DepthCameraSensor._textureToPointsJob
private

◆ _updateGaussianNoisesJob

IUpdateGaussianNoisesJob UnitySensors.Sensor.Camera.DepthCameraSensor._updateGaussianNoisesJob
private

Property Documentation

◆ convertToPointCloud

bool UnitySensors.Sensor.Camera.DepthCameraSensor.convertToPointCloud
getset

◆ pointCloud

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

◆ pointsNum

int UnitySensors.Sensor.Camera.DepthCameraSensor.pointsNum
get

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