IVTConverter.h
Go to the documentation of this file.
1
/*
2
* This file is part of ArmarX.
3
*
4
* ArmarX is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation.
7
*
8
* ArmarX is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* @author Fabian Peller (fabian dot peller at kit dot edu)
17
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
18
* GNU General Public License
19
*/
20
21
#pragma once
22
23
// STD/STL
24
#include <memory>
25
#include <string>
26
27
// IVT
28
#include <Image/ByteImage.h>
29
30
// ArmarX
31
#include <
ArmarXCore/core/exceptions/local/ExpressionException.h
>
32
33
#include <RobotAPI/interface/aron.h>
34
#include <
RobotAPI/libraries/aron/core/data/variant/complex/NDArray.h
>
35
36
namespace
armarx::aron::data::converter
37
{
38
class
AronIVTConverter
39
{
40
AronIVTConverter
() =
delete
;
41
42
public
:
43
static
std::shared_ptr<CByteImage>
ConvertToCByteImage
(
const
data::NDArrayPtr
&);
44
static
data::NDArrayPtr
ConvertFromCByteImage
(
const
std::shared_ptr<CByteImage>&);
45
};
46
}
// namespace armarx::aron::data::converter
47
48
// legacy
49
namespace
armarx::aron::converter
50
{
51
using
AronIVTConverter
=
::armarx::aron::data::converter::AronIVTConverter
;
52
}
armarx::aron::converter::AronIVTConverter
::armarx::aron::data::converter::AronIVTConverter AronIVTConverter
Definition:
IVTConverter.h:51
armarx::aron::data::converter::AronIVTConverter::ConvertFromCByteImage
static data::NDArrayPtr ConvertFromCByteImage(const std::shared_ptr< CByteImage > &)
armarx::aron::data::NDArrayPtr
std::shared_ptr< NDArray > NDArrayPtr
Definition:
NDArray.h:46
armarx::aron::data::converter::AronIVTConverter
Definition:
IVTConverter.h:38
armarx::aron::data::converter::AronIVTConverter::ConvertToCByteImage
static std::shared_ptr< CByteImage > ConvertToCByteImage(const data::NDArrayPtr &)
Definition:
IVTConverter.cpp:33
armarx::aron::converter
Definition:
EigenConverter.h:235
ExpressionException.h
armarx::aron::data::converter
Definition:
aron_conversions.cpp:3
NDArray.h
RobotAPI
libraries
aron
converter
ivt
IVTConverter.h
Generated on Sat Oct 12 2024 09:14:09 for armarx_documentation by
1.8.17