YARP
Yet Another Robot Platform
realsense2Driver.cpp File Reference
#include <cmath>
#include <algorithm>
#include <iomanip>
#include <cstdint>
#include <yarp/os/Value.h>
#include <librealsense2/rsutil.h>
#include "realsense2Driver.h"
+ Include dependency graph for realsense2Driver.cpp:

Go to the source code of this file.

Functions

static std::string get_device_information (const rs2::device &dev)
 
static void print_supported_options (const rs2::sensor &sensor)
 
static bool isSupportedFormat (const rs2::sensor &sensor, const int width, const int height, const int fps, bool verbose=false)
 
static bool optionPerc2Value (rs2_option option, const rs2::sensor *sensor, const float &perc, float &value)
 
static bool optionValue2Perc (rs2_option option, const rs2::sensor *sensor, float &perc, const float &value)
 
static bool setOption (rs2_option option, const rs2::sensor *sensor, float value)
 
static bool getOption (rs2_option option, const rs2::sensor *sensor, float &value)
 
static int pixFormatToCode (const rs2_format p)
 
static size_t bytesPerPixel (const rs2_format format)
 

Variables

constexpr char accuracy [] = "accuracy"
 
constexpr char clipPlanes [] = "clipPlanes"
 
constexpr char depthRes [] = "depthResolution"
 
constexpr char rgbRes [] = "rgbResolution"
 
constexpr char framerate [] = "framerate"
 
constexpr char enableEmitter [] = "enableEmitter"
 
constexpr char needAlignment [] = "needAlignment"
 
static std::map< std::string, RGBDSensorParamParser::RGBDParamparams_map
 

Function Documentation

◆ bytesPerPixel()

static size_t bytesPerPixel ( const rs2_format  format)
static

Definition at line 313 of file realsense2Driver.cpp.

◆ get_device_information()

static std::string get_device_information ( const rs2::device &  dev)
static

Definition at line 45 of file realsense2Driver.cpp.

◆ getOption()

static bool getOption ( rs2_option  option,
const rs2::sensor *  sensor,
float &  value 
)
static

Definition at line 245 of file realsense2Driver.cpp.

◆ isSupportedFormat()

static bool isSupportedFormat ( const rs2::sensor &  sensor,
const int  width,
const int  height,
const int  fps,
bool  verbose = false 
)
static

Definition at line 103 of file realsense2Driver.cpp.

◆ optionPerc2Value()

static bool optionPerc2Value ( rs2_option  option,
const rs2::sensor *  sensor,
const float &  perc,
float &  value 
)
static

Definition at line 167 of file realsense2Driver.cpp.

◆ optionValue2Perc()

static bool optionValue2Perc ( rs2_option  option,
const rs2::sensor *  sensor,
float &  perc,
const float &  value 
)
static

Definition at line 190 of file realsense2Driver.cpp.

◆ pixFormatToCode()

static int pixFormatToCode ( const rs2_format  p)
static

Definition at line 274 of file realsense2Driver.cpp.

◆ print_supported_options()

static void print_supported_options ( const rs2::sensor &  sensor)
static

Definition at line 65 of file realsense2Driver.cpp.

◆ setOption()

static bool setOption ( rs2_option  option,
const rs2::sensor *  sensor,
float  value 
)
static

Definition at line 215 of file realsense2Driver.cpp.

Variable Documentation

◆ accuracy

constexpr char accuracy[] = "accuracy"

Definition at line 25 of file realsense2Driver.cpp.

◆ clipPlanes

constexpr char clipPlanes[] = "clipPlanes"

Definition at line 26 of file realsense2Driver.cpp.

◆ depthRes

constexpr char depthRes[] = "depthResolution"

Definition at line 27 of file realsense2Driver.cpp.

◆ enableEmitter

constexpr char enableEmitter[] = "enableEmitter"

Definition at line 30 of file realsense2Driver.cpp.

◆ framerate

constexpr char framerate[] = "framerate"

Definition at line 29 of file realsense2Driver.cpp.

◆ needAlignment

constexpr char needAlignment[] = "needAlignment"

Definition at line 31 of file realsense2Driver.cpp.

◆ params_map

◆ rgbRes

constexpr char rgbRes[] = "rgbResolution"

Definition at line 28 of file realsense2Driver.cpp.