Class recorder

Inheritance Relationships

Base Type

Class Documentation

class recorder : public rs2::device

Public Functions

inline recorder(device d)
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 explicit recorder(std::shared_ptr<rs2_device> dev)