raisim::World::DepthCameraProperties
struct · #include <raisim/World.hpp>
Settings of the CPU ray-cast depth camera used by captureDepthCamera().
Public types
DepthNoiseType
enum class DepthNoiseType : intNoise added to each valid depth sample.
| Enumerator | Value | Description |
|---|---|---|
NONE | 0 | no noise |
GAUSSIAN | normal noise with mean depthNoiseMean and standard deviation depthNoiseStd | |
UNIFORM | uniform noise in [depthNoiseMean - depthNoiseStd, depthNoiseMean + depthNoiseStd] |
Public attributes
width
int widthImage width in pixels. Must be positive.
height
int heightImage height in pixels. Must be positive.
xOffset
int xOffsetHorizontal pixel offset added to the column index when computing ray directions.
yOffset
int yOffsetVertical pixel offset added to the row index when computing ray directions.
clipNear
double clipNearNear clipping distance along the camera forward axis (m). Must satisfy 0 <= clipNear < clipFar.
clipFar
double clipFarFar clipping distance (m). Also the maximum ray length.
hFOV
double hFOVHorizontal field of view (rad). Must be in (0, pi). The vertical field follows from the aspect ratio.
captureDepth
bool captureDepthFill DepthCameraFrame::depth.
captureSegmentation
bool captureSegmentationFill DepthCameraFrame::segmentation.
capturePoints
bool capturePointsFill DepthCameraFrame::points.
depthNoiseType
DepthNoiseType depthNoiseTypeNoise model applied to depth values.
depthNoiseMean
double depthNoiseMeanNoise mean (m).
depthNoiseStd
double depthNoiseStdNoise standard deviation (GAUSSIAN) or half range (UNIFORM) (m).
depthNoiseSeed
std::uint32_t depthNoiseSeedSeed of the noise generator. The generator is re-seeded on every capture, so identical scenes give identical noise.