rgbd
include
rgbd
client_ros.h
Go to the documentation of this file.
1
5
#ifndef RGBD_CLIENT_ROS_H_
6
#define RGBD_CLIENT_ROS_H_
7
8
#include <ros/node_handle.h>
9
#include <ros/callback_queue.h>
10
#include "ros/callback_queue_interface.h"
11
12
#include <message_filters/synchronizer.h>
13
#include <message_filters/subscriber.h>
14
#include <message_filters/sync_policies/approximate_time.h>
15
#include <image_geometry/pinhole_camera_model.h>
16
17
#include <sensor_msgs/Image.h>
18
#include <sensor_msgs/CameraInfo.h>
19
20
#include "
rgbd/client_ros_base.h
"
21
#include "
rgbd/types.h
"
22
23
#include <
memory
>
24
25
26
namespace
rgbd
{
27
31
class
ClientROS
:
public
ClientROSBase
{
32
33
public
:
34
38
ClientROS
();
39
43
virtual
~ClientROS
();
44
52
bool
initialize
(
const
std::string
& rgb_image_topic,
const
std::string
& depth_image_topic,
const
std::string
& cam_info_topic);
53
60
bool
nextImage
(
Image
& image);
61
67
ImagePtr
nextImage
();
68
69
protected
:
70
71
ros::CallbackQueue
cb_queue_
;
72
73
};
74
75
}
76
77
#endif // RGBD_CLIENT_ROS_H_
std::string
std::shared_ptr
types.h
rgbd::ClientROS::nextImage
ImagePtr nextImage()
Get a new Image. If no new image has been received since the last call, The ImagePtr will be a nullpt...
Definition:
client_ros.cpp:53
rgbd::Image
Definition:
image.h:43
rgbd::ClientROS::ClientROS
ClientROS()
Constructor.
Definition:
client_ros.cpp:17
rgbd
Definition:
client.h:24
rgbd::ClientROS::~ClientROS
virtual ~ClientROS()
Destructor.
Definition:
client_ros.cpp:23
rgbd::ClientROS::cb_queue_
ros::CallbackQueue cb_queue_
Definition:
client_ros.h:71
memory
rgbd::ClientROSBase
Client which subscribes to regular ROS image topics.
Definition:
client_ros_base.h:32
client_ros_base.h
rgbd::ClientROS
Client which subscribes to regular ROS image topics.
Definition:
client_ros.h:31
rgbd::ClientROS::initialize
bool initialize(const std::string &rgb_image_topic, const std::string &depth_image_topic, const std::string &cam_info_topic)
Initialize the subscriber.
Definition:
client_ros.cpp:29
Generated on Sun Feb 23 2025 04:34:32 for rgbd by
1.8.17