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

Server which publishes ROS rgb image, depth image and pointcloud messages. More...

#include <server_ros.h>

Inheritance diagram for rgbd::ServerROS:
Inheritance graph
[legend]

Public Member Functions

void initialize (std::string ns="", const bool publish_rgb=false, const bool publish_depth=false, const bool publish_pc=false)
 initialize server More...
 
void send (const Image &image)
 Publish a new image to the selected ROS topics. More...
 
 ServerROS (ros::NodeHandle nh=ros::NodeHandle())
 Constructor. More...
 
virtual ~ServerROS ()
 Destructor. More...
 

Protected Attributes

ros::NodeHandle nh_
 
std::shared_ptr< ros::Publisher > pub_depth_img_
 
std::shared_ptr< ros::Publisher > pub_depth_info_
 
std::shared_ptr< ros::Publisher > pub_depth_pc_
 
std::shared_ptr< ros::Publisher > pub_rgb_img_
 
std::shared_ptr< ros::Publisher > pub_rgb_info_
 

Detailed Description

Server which publishes ROS rgb image, depth image and pointcloud messages.

Definition at line 16 of file server_ros.h.

Constructor & Destructor Documentation

◆ ServerROS()

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

Constructor.

Definition at line 18 of file server_ros.cpp.

◆ ~ServerROS()

rgbd::ServerROS::~ServerROS ( )
virtual

Destructor.

Definition at line 24 of file server_ros.cpp.

Member Function Documentation

◆ initialize()

void rgbd::ServerROS::initialize ( std::string  ns = "",
const bool  publish_rgb = false,
const bool  publish_depth = false,
const bool  publish_pc = false 
)

initialize server

Parameters
nsrelative or absolute namespace of publishers
publish_rgbPublish rgb image and camera info
publish_depthPublish depth image and camera info
publish_pcPublish point cloud

Definition at line 31 of file server_ros.cpp.

◆ send()

void rgbd::ServerROS::send ( const Image image)

Publish a new image to the selected ROS topics.

Parameters
imageImage to be published

Definition at line 75 of file server_ros.cpp.

Member Data Documentation

◆ nh_

ros::NodeHandle rgbd::ServerROS::nh_
protected

Definition at line 47 of file server_ros.h.

◆ pub_depth_img_

std::shared_ptr<ros::Publisher> rgbd::ServerROS::pub_depth_img_
protected

Definition at line 50 of file server_ros.h.

◆ pub_depth_info_

std::shared_ptr<ros::Publisher> rgbd::ServerROS::pub_depth_info_
protected

Definition at line 51 of file server_ros.h.

◆ pub_depth_pc_

std::shared_ptr<ros::Publisher> rgbd::ServerROS::pub_depth_pc_
protected

Definition at line 52 of file server_ros.h.

◆ pub_rgb_img_

std::shared_ptr<ros::Publisher> rgbd::ServerROS::pub_rgb_img_
protected

Definition at line 48 of file server_ros.h.

◆ pub_rgb_info_

std::shared_ptr<ros::Publisher> rgbd::ServerROS::pub_rgb_info_
protected

Definition at line 49 of file server_ros.h.


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