Main Page
+
Namespaces
Namespace List
+
Namespace Members
All
Functions
Variables
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
g
h
i
l
n
o
p
r
s
t
u
~
Functions
+
Variables
_
a
c
h
i
l
n
p
r
s
t
u
Typedefs
+
Files
File List
+
File Members
All
Functions
include
bta_tof_driver
sensor2D.hpp
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (c) 2016
3
* VoXel Interaction Design GmbH
4
*
5
* @author Angel Merino Sastre
6
*
7
* Permission is hereby granted, free of charge, to any person obtaining a copy
8
* of this software and associated documentation files (the "Software"), to deal
9
* in the Software without restriction, including without limitation the rights
10
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
* copies of the Software, and to permit persons to whom the Software is
12
* furnished to do so, subject to the following conditions:
13
*
14
* The above copyright notice and this permission notice shall be included in
15
* all copies or substantial portions of the Software.
16
*
17
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
* THE SOFTWARE.
24
*
25
******************************************************************************/
26
27
#ifndef __SENSOR2D_HPP__
28
#define __SENSOR2D_HPP__
29
30
31
#include <gst/gst.h>
32
#include <string.h>
33
#include <math.h>
34
#include <stdio.h>
35
#include <glib-object.h>
36
#include <stdlib.h>
37
#include <gst/app/gstappsink.h>
38
39
#include <
ros/ros.h
>
40
#include <
image_transport/image_transport.h
>
41
#include <
camera_info_manager/camera_info_manager.h
>
42
#include <sensor_msgs/Image.h>
43
#include <sensor_msgs/CameraInfo.h>
44
#include <sensor_msgs/SetCameraInfo.h>
45
#include <
sensor_msgs/image_encodings.h
>
46
#include <boost/thread/locks.hpp>
47
//#include <opencv2/highgui/highgui.hpp>
48
//#include <cv_bridge/cv_bridge.h>
49
50
51
#include <
ros/console.h
>
52
53
namespace
bta_tof_driver
{
54
55
class
Sensor2D
56
{
57
ros::NodeHandle
nh_
,
nh_private_
;
58
std::string
nodeName_
;
59
camera_info_manager::CameraInfoManager
cim_rgb_
;
60
image_transport::ImageTransport
it_
;
61
image_transport::CameraPublisher
pub_rgb_
;
62
63
std::string
address_
;
64
65
GstElement *
pipeline_
;
66
GstElement *
appsink
;
67
GMainLoop *
loop
;
68
69
//boost::thread* streaming;
70
71
public
:
72
73
Sensor2D
(
ros::NodeHandle
nh_camera,
74
ros::NodeHandle
nh_private,
75
std::string nodeName);
76
virtual
~Sensor2D
();
77
78
void
init
();
79
void
stop
();
80
void
getFrame
();
81
82
};
83
}
84
85
#endif
bta_tof_driver::Sensor2D::stop
void stop()
Definition:
sensor2D.cpp:261
ros::NodeHandle
bta_tof_driver::Sensor2D::cim_rgb_
camera_info_manager::CameraInfoManager cim_rgb_
Definition:
sensor2D.hpp:59
bta_tof_driver::Sensor2D::address_
std::string address_
Definition:
sensor2D.hpp:63
image_transport.h
image_transport::CameraPublisher
camera_info_manager.h
bta_tof_driver::Sensor2D
Definition:
sensor2D.hpp:55
bta_tof_driver::Sensor2D::it_
image_transport::ImageTransport it_
Definition:
sensor2D.hpp:60
bta_tof_driver::Sensor2D::init
void init()
Definition:
sensor2D.cpp:84
bta_tof_driver::Sensor2D::nh_
ros::NodeHandle nh_
Definition:
sensor2D.hpp:57
bta_tof_driver::Sensor2D::pipeline_
GstElement * pipeline_
Definition:
sensor2D.hpp:65
bta_tof_driver::Sensor2D::appsink
GstElement * appsink
Definition:
sensor2D.hpp:66
bta_tof_driver::Sensor2D::Sensor2D
Sensor2D(ros::NodeHandle nh_camera, ros::NodeHandle nh_private, std::string nodeName)
Definition:
sensor2D.cpp:46
bta_tof_driver::Sensor2D::getFrame
void getFrame()
Definition:
sensor2D.cpp:271
bta_tof_driver::Sensor2D::pub_rgb_
image_transport::CameraPublisher pub_rgb_
Definition:
sensor2D.hpp:61
bta_tof_driver
Definition:
bta_tof_driver.hpp:81
bta_tof_driver::Sensor2D::nodeName_
std::string nodeName_
Definition:
sensor2D.hpp:58
bta_tof_driver::Sensor2D::loop
GMainLoop * loop
Definition:
sensor2D.hpp:67
ros.h
console.h
camera_info_manager::CameraInfoManager
bta_tof_driver::Sensor2D::nh_private_
ros::NodeHandle nh_private_
Definition:
sensor2D.hpp:57
image_transport::ImageTransport
image_encodings.h
bta_tof_driver::Sensor2D::~Sensor2D
virtual ~Sensor2D()
Definition:
sensor2D.cpp:64
bta_tof_driver
Author(s): Angel Merino
, Simon Vogl
autogenerated on Sun Jun 26 2022 02:45:00