Class recorder
Defined in File rs_record_playback.hpp
Inheritance Relationships
Base Type
public rs2::device
(Class device)
Class Documentation
-
class recorder : public rs2::device
Public Functions
-
inline recorder(const std::string &file, rs2::device dev)
Creates a recording device to record the given device and save it to the given file as rosbag format
- Parameters:
file – [in] The desired path to which the recorder should save the data
device – [in] The device to record
-
inline recorder(const std::string &file, rs2::device dev, bool compression_enabled)
Creates a recording device to record the given device and save it to the given file as rosbag format
- Parameters:
file – [in] The desired path to which the recorder should save the data
device – [in] The device to record
compression_enabled – [in] Indicates if compression is enabled
-
inline void pause()
Pause the recording device without stopping the actual device from streaming.
-
inline void resume()
Unpauses the recording device, making it resume recording.
-
inline std::string filename() const
Gets the name of the file to which the recorder is writing
- Returns:
The name of the file to which the recorder is writing
Protected Functions
-
inline recorder(const std::string &file, rs2::device dev)