Drake
RgbdCamera::InvalidDepth Class Reference

Set of constants used to represent invalid depth values. More...

#include <drake/systems/sensors/rgbd_camera.h>

Collaboration diagram for RgbdCamera::InvalidDepth:
[legend]

Public Member Functions

Does not allow copy, move, or assignment
 InvalidDepth (const InvalidDepth &)=delete
 
InvalidDepthoperator= (const InvalidDepth &)=delete
 
 InvalidDepth (InvalidDepth &&)=delete
 
InvalidDepthoperator= (InvalidDepth &&)=delete
 

Static Public Attributes

static constexpr float kTooFar {std::numeric_limits<float>::infinity()}
 The depth value when the max sensing range is exceeded. More...
 
static constexpr float kTooClose {0.f}
 The depth value when the min sensing range is violated because the object being sensed is too close. More...
 

Detailed Description

Set of constants used to represent invalid depth values.

Note that if a depth is not measurable, NaN will be set.

Constructor & Destructor Documentation

InvalidDepth ( const InvalidDepth )
delete
InvalidDepth ( InvalidDepth &&  )
delete

Member Function Documentation

InvalidDepth& operator= ( const InvalidDepth )
delete
InvalidDepth& operator= ( InvalidDepth &&  )
delete

Member Data Documentation

constexpr float kTooClose {0.f}
static

The depth value when the min sensing range is violated because the object being sensed is too close.

Note that this differs from ROS, which uses negative infinity in this scenario. Drake uses zero because it results in less devastating bugs when users fail to check for the lower limit being hit and using negative infinity does not prevent users from writing bad code.

constexpr float kTooFar {std::numeric_limits<float>::infinity()}
static

The depth value when the max sensing range is exceeded.


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