Intel® RealSense™ Cross Platform API  2.13.0
Intel Realsense Cross-platform API
Public Member Functions | Protected Member Functions | List of all members
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 device)
 
void pause ()
 
void resume ()
 
std::string filename () const
 
- Public Member Functions inherited from rs2::device
std::vector< sensorquery_sensors () 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
 
template<class T >
bool is () const
 
template<class T >
as () const
 
virtual ~device ()
 

Protected Member Functions

 recorder (std::shared_ptr< rs2_device > dev)
 
- Protected Member Functions inherited from rs2::device
 device (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/3]

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

◆ recorder() [2/3]

rs2::recorder::recorder ( const std::string &  file,
rs2::device  device 
)
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/3]

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: