MRPT
2.0.4
mrpt
ros1bridge
image.h
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| https://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6
| See: https://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See: https://www.mrpt.org/License |
8
+------------------------------------------------------------------------+ */
9
10
/*---------------------------------------------------------------
11
APPLICATION: mrpt_ros bridge
12
FILE: image.h
13
AUTHOR: Raghavender Sahdev <raghavendersahdev@gmail.com>
14
---------------------------------------------------------------*/
15
16
#pragma once
17
18
#include <
mrpt/img/CImage.h
>
19
#include <
mrpt/obs/CObservationImage.h
>
20
#include <sensor_msgs/Image.h>
21
#include <cstring>
// size_t
22
23
namespace
mrpt::ros1bridge
24
{
25
/** \addtogroup mrpt_ros1bridge_grp
26
* @{ */
27
28
/** Makes a deep copy of the image data */
29
mrpt::img::CImage
fromROS
(
const
sensor_msgs::Image& i);
30
31
/** Makes a deep copy of the image data */
32
sensor_msgs::Image
toROS
(
33
const
mrpt::img::CImage
& i,
const
std_msgs::Header& msg_header);
34
/** @} */
35
36
}
// namespace mrpt::ros1bridge
mrpt::img::CImage
A class for storing images as grayscale or RGB bitmaps.
Definition:
img/CImage.h:148
mrpt::ros1bridge::fromROS
bool fromROS(const sensor_msgs::NavSatFix &msg, mrpt::obs::CObservationGPS &obj)
Convert sensor_msgs/NavSatFix -> mrpt::obs::CObservationGPS.
Definition:
gps.cpp:20
mrpt::ros1bridge
ROS message: http://docs.ros.org/api/sensor_msgs/html/msg/NavSatFix.html MRPT message: https://github...
Definition:
gps.h:28
CObservationImage.h
CImage.h
mrpt::ros1bridge::toROS
bool toROS(const mrpt::obs::CObservationGPS &obj, const std_msgs::Header &msg_header, sensor_msgs::NavSatFix &msg)
Convert mrpt::obs::CObservationGPS -> sensor_msgs/NavSatFix The user must supply the "msg_header" fie...
Definition:
gps.cpp:48
Page generated by
Doxygen 1.8.17
for MRPT 2.0.4 at Sat Jun 27 14:00:59 UTC 2020