Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
Loading...
Searching...
No Matches
rs2::recorder Class Reference

#include <rs_record_playback.hpp>

Inheritance diagram for rs2::recorder:
rs2::device

Public Member Functions

 recorder (device d)
 recorder (const std::string &file, rs2::device dev)
 recorder (const std::string &file, rs2::device dev, bool compression_enabled)
void pause ()
void resume ()
std::string filename () const
Public Member Functions inherited from rs2::device
std::vector< sensorquery_sensors () const
std::string get_type () const
std::string get_description () const
template<class T>
first () const
bool supports (rs2_camera_info info) const
const char * get_info (rs2_camera_info info) const
void hardware_reset ()
deviceoperator= (const std::shared_ptr< rs2_device > dev)
deviceoperator= (const device &dev)
 device ()
 operator bool () const
const std::shared_ptr< rs2_device > & get () const
bool operator< (device const &other) const
bool is_connected () const
template<class T>
bool is () const
template<class T>
as () const
virtual ~device ()
 operator std::shared_ptr< rs2_device > ()
 device (std::shared_ptr< rs2_device > dev)

Protected Member Functions

 recorder (std::shared_ptr< rs2_device > dev)

Additional Inherited Members

Protected Attributes inherited from rs2::device
std::shared_ptr< rs2_device_dev

Constructor & Destructor Documentation

◆ recorder() [1/4]

rs2::recorder::recorder ( device d)
inline

◆ recorder() [2/4]

rs2::recorder::recorder ( const std::string & file,
rs2::device dev )
inline

Creates a recording device to record the given device and save it to the given file as rosbag format

Parameters
[in]fileThe desired path to which the recorder should save the data
[in]deviceThe device to record

◆ recorder() [3/4]

rs2::recorder::recorder ( const std::string & file,
rs2::device dev,
bool compression_enabled )
inline

Creates a recording device to record the given device and save it to the given file as rosbag format

Parameters
[in]fileThe desired path to which the recorder should save the data
[in]deviceThe device to record
[in]compression_enabledIndicates if compression is enabled

◆ recorder() [4/4]

rs2::recorder::recorder ( std::shared_ptr< rs2_device > dev)
inlineexplicitprotected

Member Function Documentation

◆ filename()

std::string rs2::recorder::filename ( ) const
inline

Gets the name of the file to which the recorder is writing

Returns
The name of the file to which the recorder is writing

◆ pause()

void rs2::recorder::pause ( )
inline

Pause the recording device without stopping the actual device from streaming.

◆ resume()

void rs2::recorder::resume ( )
inline

Unpauses the recording device, making it resume recording.


The documentation for this class was generated from the following file: