rgbd
Public Member Functions | Protected Attributes | List of all members
rgbd::Server Class Reference

Server which provides interfaces of ServerRGBD and ServerSHM. More...

#include <server.h>

Public Member Functions

void initialize (const std::string &name, RGBStorageType rgb_type=RGB_STORAGE_LOSSLESS, DepthStorageType depth_type=DEPTH_STORAGE_LOSSLESS, const float service_freq=10)
 initialize initialize server More...
 
void send (const Image &image, bool threaded=false)
 send Write a new image to all interfaces More...
 
 Server (ros::NodeHandle nh=ros::NodeHandle())
 Constructor. More...
 
virtual ~Server ()
 Destructor. More...
 

Protected Attributes

std::string hostname_
 
std::string name_
 
ros::NodeHandle nh_
 
std::unique_ptr< std::threadpub_hostname_thread_ptr_
 
ServerRGBD server_rgbd_
 
ServerSHM server_shm_
 

Detailed Description

Server which provides interfaces of ServerRGBD and ServerSHM.

Definition at line 21 of file server.h.

Constructor & Destructor Documentation

◆ Server()

rgbd::Server::Server ( ros::NodeHandle  nh = ros::NodeHandle())

Constructor.

Definition at line 12 of file server.cpp.

◆ ~Server()

rgbd::Server::~Server ( )
virtual

Destructor.

Definition at line 20 of file server.cpp.

Member Function Documentation

◆ initialize()

void rgbd::Server::initialize ( const std::string name,
RGBStorageType  rgb_type = RGB_STORAGE_LOSSLESS,
DepthStorageType  depth_type = DEPTH_STORAGE_LOSSLESS,
const float  service_freq = 10 
)

initialize initialize server

Parameters
nameFully resolved server name
rgb_typergb storage type
depth_typedepth storage type
service_freqfrequency of the thread processing service requests in ServerRGBD

Definition at line 29 of file server.cpp.

◆ send()

void rgbd::Server::send ( const Image image,
bool  threaded = false 
)

send Write a new image to all interfaces

Parameters
imageImage to be written
threadedUse any threaded version of send of the interfaces

Definition at line 38 of file server.cpp.

Member Data Documentation

◆ hostname_

std::string rgbd::Server::hostname_
protected

Definition at line 60 of file server.h.

◆ name_

std::string rgbd::Server::name_
protected

Definition at line 59 of file server.h.

◆ nh_

ros::NodeHandle rgbd::Server::nh_
protected

Definition at line 57 of file server.h.

◆ pub_hostname_thread_ptr_

std::unique_ptr<std::thread> rgbd::Server::pub_hostname_thread_ptr_
protected

Definition at line 63 of file server.h.

◆ server_rgbd_

ServerRGBD rgbd::Server::server_rgbd_
protected

Definition at line 53 of file server.h.

◆ server_shm_

ServerSHM rgbd::Server::server_shm_
protected

Definition at line 55 of file server.h.


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