Main Page
Modules
Namespaces
Classes
Files
File List
File Members
ros
include
RGBDNode.h
Go to the documentation of this file.
1
21
#ifndef ORBSLAM2_ROS_RGBDODE_H_
22
#define ORBSLAM2_ROS_RGBDODE_H_
23
24
#include <iostream>
25
#include <algorithm>
26
#include <fstream>
27
#include <chrono>
28
29
#include <
ros/ros.h
>
30
#include <
message_filters/subscriber.h
>
31
#include <
message_filters/time_synchronizer.h
>
32
#include <
message_filters/sync_policies/approximate_time.h
>
33
#include <
image_transport/image_transport.h
>
34
#include <
cv_bridge/cv_bridge.h
>
35
#include <
sensor_msgs/image_encodings.h
>
36
#include <opencv2/core/core.hpp>
37
#include <
tf/transform_broadcaster.h
>
38
39
#include "
System.h
"
40
#include "
Node.h
"
41
42
43
class
RGBDNode
:
public
Node
44
{
45
public
:
46
RGBDNode
(
const
ORB_SLAM2::System::eSensor
sensor,
ros::NodeHandle
&node_handle,
image_transport::ImageTransport
&
image_transport
);
47
~RGBDNode
();
48
void
ImageCallback
(
const
sensor_msgs::ImageConstPtr& msgRGB,
const
sensor_msgs::ImageConstPtr& msgD);
49
50
private
:
51
typedef
message_filters::sync_policies::ApproximateTime<sensor_msgs::Image, sensor_msgs::Image>
sync_pol
;
52
message_filters::Subscriber<sensor_msgs::Image>
*
rgb_subscriber_
;
53
message_filters::Subscriber<sensor_msgs::Image>
*
depth_subscriber_
;
54
message_filters::Synchronizer<sync_pol>
*
sync_
;
55
};
56
57
#endif //ORBSLAM2_ROS_RGBDODE_H_
message_filters::Synchronizer
ros::NodeHandle
Node
Definition:
Node.h:54
RGBDNode::ImageCallback
void ImageCallback(const sensor_msgs::ImageConstPtr &msgRGB, const sensor_msgs::ImageConstPtr &msgD)
Definition:
RGBDNode.cc:46
RGBDNode::rgb_subscriber_
message_filters::Subscriber< sensor_msgs::Image > * rgb_subscriber_
Definition:
RGBDNode.h:52
subscriber.h
RGBDNode::~RGBDNode
~RGBDNode()
Definition:
RGBDNode.cc:39
Node.h
image_transport.h
image_transport
transform_broadcaster.h
RGBDNode::RGBDNode
RGBDNode(const ORB_SLAM2::System::eSensor sensor, ros::NodeHandle &node_handle, image_transport::ImageTransport &image_transport)
Definition:
RGBDNode.cc:29
RGBDNode
Definition:
RGBDNode.h:43
time_synchronizer.h
cv_bridge.h
System.h
approximate_time.h
ORB_SLAM2::System::eSensor
eSensor
Definition:
System.h:54
ros.h
message_filters::sync_policies::ApproximateTime
RGBDNode::depth_subscriber_
message_filters::Subscriber< sensor_msgs::Image > * depth_subscriber_
Definition:
RGBDNode.h:53
RGBDNode::sync_pol
message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, sensor_msgs::Image > sync_pol
Definition:
RGBDNode.h:51
image_transport::ImageTransport
image_encodings.h
message_filters::Subscriber< sensor_msgs::Image >
RGBDNode::sync_
message_filters::Synchronizer< sync_pol > * sync_
Definition:
RGBDNode.h:54
orb_slam2_ros
Author(s):
autogenerated on Wed Apr 21 2021 02:53:05