#pragma once #include #include #include #include class IntelRealSenseSensor { public: IntelRealSenseSensor() = default; ~IntelRealSenseSensor() { std::cout << " ~IntelRealSenseSensor called " << std::endl; } void start(std::atomic_bool& fr_restartHandle, std::function fr_callBack); void stop(); private: rs2::context m_context; rs2::sensor m_sensor; bool m_isStopped{ true }; };