Public Member Functions | Protected Member Functions | List of all members
rs2::recorder Class Reference

#include <rs_record_playback.hpp>

Inheritance diagram for rs2::recorder:
Inheritance graph
[legend]

Public Member Functions

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

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
 

Detailed Description

Definition at line 203 of file rs_record_playback.hpp.

Constructor & Destructor Documentation

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

Definition at line 206 of file rs_record_playback.hpp.

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

Definition at line 213 of file rs_record_playback.hpp.

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

Definition at line 228 of file rs_record_playback.hpp.

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

Definition at line 270 of file rs_record_playback.hpp.

Member Function Documentation

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

Definition at line 262 of file rs_record_playback.hpp.

void rs2::recorder::pause ( )
inline

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

Definition at line 241 of file rs_record_playback.hpp.

void rs2::recorder::resume ( )
inline

Unpauses the recording device, making it resume recording.

Definition at line 251 of file rs_record_playback.hpp.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:41