Skip to content

raisim::World::DepthCameraProperties ​

struct · #include <raisim/World.hpp>

Settings of the CPU ray-cast depth camera used by captureDepthCamera().

Public types ​

DepthNoiseType ​

cpp
enum class DepthNoiseType : int

Noise added to each valid depth sample.

EnumeratorValueDescription
NONE0no noise
GAUSSIANnormal noise with mean depthNoiseMean and standard deviation depthNoiseStd
UNIFORMuniform noise in [depthNoiseMean - depthNoiseStd, depthNoiseMean + depthNoiseStd]

Public attributes ​

width ​

cpp
int width

Image width in pixels. Must be positive.

height ​

cpp
int height

Image height in pixels. Must be positive.

xOffset ​

cpp
int xOffset

Horizontal pixel offset added to the column index when computing ray directions.

yOffset ​

cpp
int yOffset

Vertical pixel offset added to the row index when computing ray directions.

clipNear ​

cpp
double clipNear

Near clipping distance along the camera forward axis (m). Must satisfy 0 <= clipNear < clipFar.

clipFar ​

cpp
double clipFar

Far clipping distance (m). Also the maximum ray length.

hFOV ​

cpp
double hFOV

Horizontal field of view (rad). Must be in (0, pi). The vertical field follows from the aspect ratio.

captureDepth ​

cpp
bool captureDepth

Fill DepthCameraFrame::depth.

captureSegmentation ​

cpp
bool captureSegmentation

Fill DepthCameraFrame::segmentation.

capturePoints ​

cpp
bool capturePoints

Fill DepthCameraFrame::points.

depthNoiseType ​

cpp
DepthNoiseType depthNoiseType

Noise model applied to depth values.

depthNoiseMean ​

cpp
double depthNoiseMean

Noise mean (m).

depthNoiseStd ​

cpp
double depthNoiseStd

Noise standard deviation (GAUSSIAN) or half range (UNIFORM) (m).

depthNoiseSeed ​

cpp
std::uint32_t depthNoiseSeed

Seed of the noise generator. The generator is re-seeded on every capture, so identical scenes give identical noise.

RaiSim — physics for robotics and AI.