Server which provides RGBD topic and RGBD service.
More...
#include <server_rgbd.h>
Server which provides RGBD topic and RGBD service.
Definition at line 20 of file server_rgbd.h.
◆ ServerRGBD()
rgbd::ServerRGBD::ServerRGBD |
( |
ros::NodeHandle |
nh = ros::NodeHandle() | ) |
|
◆ ~ServerRGBD()
rgbd::ServerRGBD::~ServerRGBD |
( |
| ) |
|
|
virtual |
Destructor.
Nodehandle is shutdown and all threads are joined
Definition at line 34 of file server_rgbd.cpp.
◆ initialize()
Initialize server.
- Parameters
-
name | Fully resolved server name |
rgb_type | rgb storage type |
depth_type | depth storage type |
service_freq | frequency of the thread processing service requests |
Definition at line 43 of file server_rgbd.cpp.
◆ send()
void rgbd::ServerRGBD::send |
( |
const Image & |
image | ) |
|
Write a new image to all interfaces.
- Parameters
-
Definition at line 56 of file server_rgbd.cpp.
◆ serviceCallback()
bool rgbd::ServerRGBD::serviceCallback |
( |
rgbd_msgs::GetRGBDRequest & |
req, |
|
|
rgbd_msgs::GetRGBDResponse & |
resp |
|
) |
| |
|
protected |
serviceCallback
- Parameters
-
req | Service Request |
resp | Service Response |
- Returns
- success
Definition at line 83 of file server_rgbd.cpp.
◆ serviceThreadFunc()
void rgbd::ServerRGBD::serviceThreadFunc |
( |
const float |
frequency | ) |
|
|
protected |
Function to be called in the thread proving the service.
- Parameters
-
frequency | frequency for checking service requests |
Definition at line 118 of file server_rgbd.cpp.
◆ cb_queue_
ros::CallbackQueue rgbd::ServerRGBD::cb_queue_ |
|
protected |
◆ depth_type_
◆ image_
◆ image_mutex_
◆ MESSAGE_VERSION
const int rgbd::ServerRGBD::MESSAGE_VERSION = 4 |
|
static |
◆ nh_
ros::NodeHandle rgbd::ServerRGBD::nh_ |
|
protected |
◆ pub_image_
ros::Publisher rgbd::ServerRGBD::pub_image_ |
|
protected |
◆ rgb_type_
◆ service_server_
ros::ServiceServer rgbd::ServerRGBD::service_server_ |
|
protected |
◆ service_thread_
The documentation for this class was generated from the following files: