Skip to content

raisim::rscene::GaussianSplat ​

struct · #include <raisim/Rscene.hpp>

A gaussian_splat record: a captured 3D Gaussian Splatting scene that viewers draw (render only; physics needs separate collision geometry). Only enabled records are loaded. The record is gaussian_splat [path] file=<splat file> position=x,y,z quaternion=w,x,y,z scale=s detectable=true segmentation=object,body,label maxShDegree=3 shQuality=standard|high with every key but file optional.

Public attributes ​

path ​

cpp
std::string path

Scene node path (may be empty).

file ​

cpp
std::string file

The splat file (Inria .ply, compressed .ply, .spz or .splat).

position ​

cpp
Vec3 position

Position of the file origin in the world frame (m).

rotation ​

cpp
Quat rotation

Rotation from the file frame to the world frame (w, x, y, z).

scale ​

cpp
double scale

Uniform scale from file units to metres (> 0).

detectable ​

cpp
bool detectable

Seen by sensors (camera, depth and segmentation renders).

segmentationObject ​

cpp
int segmentationObject

Segmentation object, body and label ids where the splats win a pixel.

segmentationBody ​

cpp
int segmentationBody

segmentationLabel ​

cpp
int segmentationLabel

maxShDegree ​

cpp
int maxShDegree

Highest spherical-harmonics degree loaded (0 to 3).

highQualitySh ​

cpp
bool highQualitySh

Store the spherical-harmonics terms above degree 0 as 16-bit floats instead of 8 bits.

RaiSim — physics for robotics and AI.