Skip to content

raisim::RGBCamera::RGBCameraProperties ​

struct · #include <raisim/sensors/RGBSensor.hpp>

Configuration of an RGBCamera. Change it with setProperties().

Public types ​

NoiseType ​

cpp
enum class NoiseType : int

Additive read-noise distribution, applied to simulated captures.

EnumeratorValueDescription
GAUSSIAN0Gaussian noise.
UNIFORMUniform noise.
NO_NOISENo noise.

Static member functions ​

stringToNoiseType static ​

cpp
static NoiseType stringToNoiseType(const std::string &type)

Parameters

ParameterDescription
type (in)Noise name.

Returns GAUSSIAN for "gaussian"/"Gaussian", UNIFORM for "uniform"/"Uniform", otherwise NO_NOISE.

Public attributes ​

name ​

cpp
std::string name

Sensor name (without the sensor set prefix).

full_name ​

cpp
std::string full_name

Sensor name including the sensor set prefix.

width ​

cpp
int width

Image width in pixels.

height ​

cpp
int height

Image height in pixels.

xOffset ​

cpp
int xOffset

Horizontal pixel offset for the capture window.

yOffset ​

cpp
int yOffset

Vertical pixel offset for the capture window.

clipNear ​

cpp
double clipNear

Near clipping plane in meters.

clipFar ​

cpp
double clipFar

Far clipping plane in meters.

hFOV ​

cpp
double hFOV

Horizontal field of view in radians. Must be in (0, pi) for pinhole and (0, pi] for fisheye.

lens ​

cpp
CameraLensModel lens

Renderer lens specification serialized with the sensor metadata. Defaults to pinhole.

noiseType ​

cpp
enum raisim::RGBCamera::RGBCameraProperties::NoiseType noiseType

Selected noise model (default NO_NOISE).

mean ​

cpp
double mean

Additive read-noise mean in normalized intensity units (1 is full scale).

std ​

cpp
double std

Read-noise standard deviation in normalized intensity units.

shotNoise ​

cpp
double shotNoise

Signal-dependent Gaussian variance coefficient: variance = shotNoise * intensity. This is the high photon-count approximation to shot noise, in the rendered color space.

rowNoiseStd ​

cpp
double rowNoiseStd

Standard deviation of a Gaussian row offset shared by the three color channels.

seed ​

cpp
uint32_t seed

Zero derives a stream from sensor identity and owner id; nonzero selects an explicit stream. The World environment seed is mixed into both.

format ​

cpp
std::string format

Pixel format string, stored and serialized as metadata. The buffer always has 4 bytes per pixel.

RaiSim — physics for robotics and AI.