Drake
RgbdRendererTest< Renderer > Class Template Reference

#include <drake/systems/sensors/test/rgbd_renderer_test_util.h>

Public Member Functions

 RgbdRendererTest ()
 

Protected Member Functions

void Render ()
 
void VerifyUniformColor (const sensors::ColorI &pixel, int alpha)
 
void VerifyUniformLabel (int16_t label)
 
void VerifyUniformDepth (float depth)
 
void VerifyOutliers ()
 
void Init (const Eigen::Isometry3d &X_WC, bool add_terrain=false)
 

Protected Attributes

const int kWidth = 640
 
const int kHeight = 480
 
const double kZNear = 0.5
 
const double kZFar = 5.
 
const double kFovY = M_PI_4
 
const bool kShowWindow = RenderingConfig::kDefaultShowWindow
 
const double kColorPixelTolerance = 1.001
 
const double kDepthTolerance = 1.1e-4
 
const sensors::ColorI kDefaultVisualColor = {179u, 179u, 179u}
 
const float kDefaultDistance {3.f}
 
const ScreenCoord kInlier = {320, 240}
 
const std::array< ScreenCoord, 4 > kOutliers
 
ImageRgba8U color_
 
ImageDepth32F depth_
 
ImageLabel16I label_
 
Eigen::Isometry3d X_WC_
 
std::unique_ptr< RgbdRendererrenderer_
 

Constructor & Destructor Documentation

◆ RgbdRendererTest()

RgbdRendererTest ( )
inline

Member Function Documentation

◆ Init()

void Init ( const Eigen::Isometry3d &  X_WC,
bool  add_terrain = false 
)
inlineprotected

◆ Render()

void Render ( )
inlineprotected

◆ VerifyOutliers()

void VerifyOutliers ( )
inlineprotected

◆ VerifyUniformColor()

void VerifyUniformColor ( const sensors::ColorI pixel,
int  alpha 
)
inlineprotected

◆ VerifyUniformDepth()

void VerifyUniformDepth ( float  depth)
inlineprotected

◆ VerifyUniformLabel()

void VerifyUniformLabel ( int16_t  label)
inlineprotected

Member Data Documentation

◆ color_

ImageRgba8U color_
protected

◆ depth_

ImageDepth32F depth_
protected

◆ kColorPixelTolerance

const double kColorPixelTolerance = 1.001
protected

◆ kDefaultDistance

const float kDefaultDistance {3.f}
protected

◆ kDefaultVisualColor

const sensors::ColorI kDefaultVisualColor = {179u, 179u, 179u}
protected

◆ kDepthTolerance

const double kDepthTolerance = 1.1e-4
protected

◆ kFovY

const double kFovY = M_PI_4
protected

◆ kHeight

const int kHeight = 480
protected

◆ kInlier

const ScreenCoord kInlier = {320, 240}
protected

◆ kOutliers

const std::array<ScreenCoord, 4> kOutliers
protected
Initial value:
{{
{10, 10}, {10, 470}, {630, 10}, {630, 470}}}

◆ kShowWindow

const bool kShowWindow = RenderingConfig::kDefaultShowWindow
protected

◆ kWidth

const int kWidth = 640
protected

◆ kZFar

const double kZFar = 5.
protected

◆ kZNear

const double kZNear = 0.5
protected

◆ label_

ImageLabel16I label_
protected

◆ renderer_

std::unique_ptr<RgbdRenderer> renderer_
protected

◆ X_WC_

Eigen::Isometry3d X_WC_
protected

The documentation for this class was generated from the following file: