Go to the documentation of this file. 1 #ifndef RGBD_SERVER_RGBD_H_
2 #define RGBD_SERVER_RGBD_H_
5 #include "rgbd_msgs/GetRGBD.h"
7 #include <ros/callback_queue.h>
8 #include <ros/node_handle.h>
9 #include <ros/publisher.h>
10 #include <ros/service_server.h>
27 ServerRGBD(ros::NodeHandle nh=ros::NodeHandle());
78 bool serviceCallback(rgbd_msgs::GetRGBDRequest& req, rgbd_msgs::GetRGBDResponse& resp);
90 #endif // RGBD_SERVER_RGBD_H_
ros::ServiceServer service_server_
void initialize(const std::string &name, RGBStorageType rgb_type=RGB_STORAGE_LOSSLESS, DepthStorageType depth_type=DEPTH_STORAGE_LOSSLESS, const float service_freq=10)
Initialize server.
ServerRGBD(ros::NodeHandle nh=ros::NodeHandle())
Constructor.
virtual ~ServerRGBD()
Destructor.
void serviceThreadFunc(const float frequency)
Function to be called in the thread proving the service.
std::thread service_thread_
const static int MESSAGE_VERSION
version of the RGBD message being used
DepthStorageType depth_type_
ros::CallbackQueue cb_queue_
bool serviceCallback(rgbd_msgs::GetRGBDRequest &req, rgbd_msgs::GetRGBDResponse &resp)
serviceCallback
Server which provides RGBD topic and RGBD service.
ros::Publisher pub_image_
void send(const Image &image)
Write a new image to all interfaces.