raisim::World::DepthCameraFrame
struct · #include <raisim/World.hpp>
Output of captureDepthCamera(). Pixel buffers are row-major (index = row * width + column), starting at the top-left pixel.
Public attributes
width
cpp
int widthImage width in pixels.
height
cpp
int heightImage height in pixels.
timeStamp
cpp
double timeStampWorld time (s) at capture.
depth
cpp
std::vector<float> depthDepth along the camera forward axis (m); NaN where nothing was hit within the clip range. Empty if not captured.
segmentation
cpp
std::vector<int> segmentationWorld index (Object::getIndexInWorld()) of the hit object; -1 for background. Empty if not captured.
points
cpp
std::vector<Vec<3>, AlignedAllocator<Vec<3>, 32>> pointsHit positions in the world frame (m); NaN where nothing was hit. Empty if not captured.