Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
ip_device Class Reference

#include <ip_device.hh>

Public Member Functions

 ip_device (rs2::software_device sw_device, std::string ip_address)
 
 ~ip_device ()
 

Public Attributes

ip_sensorremote_sensors [NUM_OF_SENSORS]
 

Private Member Functions

std::vector< IpDeviceControlDataget_controls (int sensor_id)
 
void get_option_value (int sensor_index, rs2_option opt, float &val)
 
bool init_device_data (rs2::software_device sw_device)
 
void inject_frames_loop (std::shared_ptr< rs_rtp_stream > rtp_stream)
 
void polling_state_loop ()
 
std::vector< rs2_video_streamquery_streams (int sensor_id)
 
void recover_rtsp_client (int sensor_index)
 
void set_option_value (int sensor_index, rs2_option opt, float val)
 
void stop_sensor_streams (int sensor_id)
 
void update_option_value (int sensor_index, rs2_option opt, float val)
 
void update_sensor_state (int sensor_index, std::vector< rs2::stream_profile > updated_streams, bool recover)
 

Private Attributes

std::map< std::pair< rs2_stream, int >, int > default_streams
 
std::map< long long int, std::thread > inject_frames_thread
 
std::string ip_address
 
unsigned int ip_port
 
bool is_device_alive
 
MemoryPoolmemory_pool
 
std::map< long long int, rs_rtp_callback * > rtp_callbacks
 
std::map< long long int, std::shared_ptr< rs_rtp_stream > > streams_collection
 
std::thread sw_device_status_check
 

Detailed Description

Definition at line 31 of file ip_device.hh.

Constructor & Destructor Documentation

ip_device::ip_device ( rs2::software_device  sw_device,
std::string  ip_address 
)

Definition at line 69 of file ip_device.cpp.

ip_device::~ip_device ( )

Definition at line 31 of file ip_device.cpp.

Member Function Documentation

std::vector< IpDeviceControlData > ip_device::get_controls ( int  sensor_id)
private

Definition at line 102 of file ip_device.cpp.

void ip_device::get_option_value ( int  sensor_index,
rs2_option  opt,
float &  val 
)
private

Definition at line 293 of file ip_device.cpp.

bool ip_device::init_device_data ( rs2::software_device  sw_device)
private

Definition at line 111 of file ip_device.cpp.

void ip_device::inject_frames_loop ( std::shared_ptr< rs_rtp_stream rtp_stream)
private

Definition at line 357 of file ip_device.cpp.

void ip_device::polling_state_loop ( )
private

Definition at line 216 of file ip_device.cpp.

std::vector< rs2_video_stream > ip_device::query_streams ( int  sensor_id)
private

Definition at line 87 of file ip_device.cpp.

void ip_device::recover_rtsp_client ( int  sensor_index)
private

Definition at line 23 of file ip_device.cpp.

void ip_device::set_option_value ( int  sensor_index,
rs2_option  opt,
float  val 
)
private

Definition at line 285 of file ip_device.cpp.

void ip_device::stop_sensor_streams ( int  sensor_id)
private

Definition at line 57 of file ip_device.cpp.

void ip_device::update_option_value ( int  sensor_index,
rs2_option  opt,
float  val 
)
private

Definition at line 272 of file ip_device.cpp.

void ip_device::update_sensor_state ( int  sensor_index,
std::vector< rs2::stream_profile updated_streams,
bool  recover 
)
private

Definition at line 314 of file ip_device.cpp.

Member Data Documentation

std::map<std::pair<rs2_stream,int>,int> ip_device::default_streams
private
Initial value:
=
{
{ std::make_pair(rs2_stream::RS2_STREAM_COLOR,0),-1},
{ std::make_pair(rs2_stream::RS2_STREAM_DEPTH,0),-1}
}

Definition at line 80 of file ip_device.hh.

std::map<long long int, std::thread> ip_device::inject_frames_thread
private

Definition at line 52 of file ip_device.hh.

std::string ip_device::ip_address
private

Definition at line 46 of file ip_device.hh.

unsigned int ip_device::ip_port
private

Definition at line 47 of file ip_device.hh.

bool ip_device::is_device_alive
private

Definition at line 41 of file ip_device.hh.

MemoryPool* ip_device::memory_pool
private

Definition at line 44 of file ip_device.hh.

ip_sensor* ip_device::remote_sensors[NUM_OF_SENSORS]

Definition at line 38 of file ip_device.hh.

std::map<long long int, rs_rtp_callback*> ip_device::rtp_callbacks
private

Definition at line 54 of file ip_device.hh.

std::map<long long int, std::shared_ptr<rs_rtp_stream> > ip_device::streams_collection
private

Definition at line 50 of file ip_device.hh.

std::thread ip_device::sw_device_status_check
private

Definition at line 56 of file ip_device.hh.


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


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