13 #ifndef DEEPSTREAM_DS3D_SENSOR_FUSION_HPP
14 #define DEEPSTREAM_DS3D_SENSOR_FUSION_HPP
36 #define CHECK_ERROR(statement, fmt, ...) DS3D_FAILED_RETURN(statement, -1, fmt, ##__VA_ARGS__)
39 #define RETURN_ERROR(statement, fmt, ...) DS3D_ERROR_RETURN(statement, fmt, ##__VA_ARGS__)
46 bool isGstPlugin()
const;
56 bool enableDebug =
false;
57 bool eosAutoStop =
true;
58 bool probeBuffer =
false;
68 this->config = compConf;
69 YAML::Node node = YAML::Load(compConf.
rawContent);
70 auto debugNode = node[
"enable_debug"];
71 auto eosNode = node[
"eos_auto_stop"];
72 auto probeNode = node[
"probe_buffer"];
74 enableDebug = debugNode.as<
bool>();
78 eosAutoStop = eosNode.as<
bool>();
81 probeBuffer = probeNode.as<
bool>();
96 ErrCode setup(
const std::string& configPath, std::function<
void()> windowClosed);
98 void deinit()
override;
103 ErrCode init(
const std::string& name)
override;
115 std::string _configPath;
116 std::map<std::string, Ptr<Component>> _components;
117 std::function<void()> _windowClosedCb;