Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
rs_data_collect::data_collector Class Reference

#include <rs-data-collect.h>


struct  frame_record

Public Member Functions

void collect_frame_attributes (rs2::frame f, std::chrono::time_point< std::chrono::high_resolution_clock > start_time)
bool collecting (std::chrono::time_point< std::chrono::high_resolution_clock > start_time)
 data_collector (std::shared_ptr< rs2::device > dev, ValueArg< int > &timeout, ValueArg< int > &max_frames)
 data_collector (const data_collector &)
void parse_and_configure (ValueArg< string > &config_file)
void save_data_to_file (const string &out_filename)
const std::vector< rs2::sensor > & selected_sensors () const
 ~data_collector ()

Private Member Functions

bool configure_sensors ()
bool parse_configuration (const std::string &line, const std::vector< std::string > &tokens, rs2_stream &type, int &width, int &height, rs2_format &format, int &fps, int &index)

Private Attributes

std::shared_ptr< rs2::device_dev
uint64_t _max_frames
application_stop _stop_cond
int64_t _time_out_sec
std::vector< rs2::sensoractive_sensors
std::map< std::pair< rs2_stream, int >, std::vector< frame_record > > data_collection
std::vector< stream_requestrequests_to_go
std::vector< rs2::stream_profileselected_stream_profiles
std::vector< stream_requestuser_requests

Detailed Description

Definition at line 177 of file rs-data-collect.h.

Constructor & Destructor Documentation

data_collector::data_collector ( std::shared_ptr< rs2::device dev,
ValueArg< int > &  timeout,
ValueArg< int > &  max_frames 

Definition at line 22 of file rs-data-collect.cpp.

rs_data_collect::data_collector::~data_collector ( )

Definition at line 182 of file rs-data-collect.h.

rs_data_collect::data_collector::data_collector ( const data_collector )

Member Function Documentation

void data_collector::collect_frame_attributes ( rs2::frame  f,
std::chrono::time_point< std::chrono::high_resolution_clock >  start_time 

Definition at line 137 of file rs-data-collect.cpp.

bool data_collector::collecting ( std::chrono::time_point< std::chrono::high_resolution_clock >  start_time)

Definition at line 169 of file rs-data-collect.cpp.

bool data_collector::configure_sensors ( )

Definition at line 228 of file rs-data-collect.cpp.

void data_collector::parse_and_configure ( ValueArg< string > &  config_file)

Definition at line 32 of file rs-data-collect.cpp.

bool data_collector::parse_configuration ( const std::string line,
const std::vector< std::string > &  tokens,
rs2_stream type,
int &  width,
int &  height,
rs2_format format,
int &  fps,
int &  index 

Definition at line 197 of file rs-data-collect.cpp.

void data_collector::save_data_to_file ( const string out_filename)

Definition at line 100 of file rs-data-collect.cpp.

const std::vector<rs2::sensor>& rs_data_collect::data_collector::selected_sensors ( ) const

Definition at line 190 of file rs-data-collect.h.

Member Data Documentation

std::shared_ptr<rs2::device> rs_data_collect::data_collector::_dev

Definition at line 239 of file rs-data-collect.h.

uint64_t rs_data_collect::data_collector::_max_frames

Definition at line 244 of file rs-data-collect.h.

application_stop rs_data_collect::data_collector::_stop_cond

Definition at line 246 of file rs-data-collect.h.

int64_t rs_data_collect::data_collector::_time_out_sec

Definition at line 245 of file rs-data-collect.h.

std::vector<rs2::sensor> rs_data_collect::data_collector::active_sensors

Definition at line 242 of file rs-data-collect.h.

std::map<std::pair<rs2_stream, int>, std::vector<frame_record> > rs_data_collect::data_collector::data_collection

Definition at line 240 of file rs-data-collect.h.

std::vector<stream_request> rs_data_collect::data_collector::requests_to_go

Definition at line 241 of file rs-data-collect.h.

std::vector<rs2::stream_profile> rs_data_collect::data_collector::selected_stream_profiles

Definition at line 243 of file rs-data-collect.h.

std::vector<stream_request> rs_data_collect::data_collector::user_requests

Definition at line 241 of file rs-data-collect.h.

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

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