|
|
NVIDIA DeepStream SDK API Reference
|
9.2 Release
|
Go to the documentation of this file.
18 #ifndef _DS3D_DATALOADER_REALSENSE_CONFIG__H
19 #define _DS3D_DATALOADER_REALSENSE_CONFIG__H
21 #include <ds3d/common/common.h>
22 #include <ds3d/common/func_utils.h>
24 #include "ds3d/common/hpp/yaml_config.hpp"
26 namespace ds3d {
namespace impl {
namespace realsense {
56 "parse dataloader component content failed");
59 auto streams = node[
"streams"];
60 auto framerate = node[
"framerate"];
61 auto alignedImage2Depth = node[
"aligned_image_to_depth"];
65 auto toString = [&]() {
67 for (
auto& i : kValidStreams) {
72 std::vector<std::string> strStreams = streams.as<std::vector<std::string>>();
73 for (
auto& each : strStreams) {
76 "stream must choose from " + toString());
81 uint32_t fr = framerate.as<uint32_t>();
84 if (alignedImage2Depth) {
92 #endif // _DS3D_DATALOADER_REALSENSE_CONFIG__H
bool hasPointsStream() const
constexpr const char * kDepthStream
bool hasDepthStream() const
ErrCode parseComponentConfig(const std::string &yamlComp, const std::string &path, ComponentConfig &config)
std::set< std::string > streams
constexpr const char * kColorStream
constexpr const char * kPointsStream
ErrCode parseConfig(const std::string &content, const std::string &path, Config &config)
#define DS3D_ERROR_RETURN(code, fmt,...)
bool hasColorStream() const
#define DS3D_THROW_ERROR(statement, code, msg)
config::ComponentConfig compConfig