Server which publishes ROS rgb image, depth image and pointcloud messages.
More...
#include <server_ros.h>
Server which publishes ROS rgb image, depth image and pointcloud messages.
Definition at line 16 of file server_ros.h.
◆ ServerROS()
rgbd::ServerROS::ServerROS |
( |
ros::NodeHandle |
nh = ros::NodeHandle() | ) |
|
◆ ~ServerROS()
rgbd::ServerROS::~ServerROS |
( |
| ) |
|
|
virtual |
◆ 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
-
ns | relative or absolute namespace of publishers |
publish_rgb | Publish rgb image and camera info |
publish_depth | Publish depth image and camera info |
publish_pc | Publish 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
-
image | Image to be published |
Definition at line 75 of file server_ros.cpp.
◆ nh_
ros::NodeHandle rgbd::ServerROS::nh_ |
|
protected |
◆ pub_depth_img_
◆ pub_depth_info_
◆ pub_depth_pc_
◆ pub_rgb_img_
◆ pub_rgb_info_
The documentation for this class was generated from the following files: