Converter.h
Go to the documentation of this file.
1
#pragma once
2
3
// STD/STL
4
#include <memory>
5
6
// BaseClass
7
#include "../Converter.h"
8
9
// ArmarX
10
#include <
RobotAPI/libraries/aron/core/data/variant/complex/NDArray.h
>
11
12
#include "../../../extractor/imageExtractor/ImageExtractor.h"
13
14
namespace
armarx::armem::server::ltm::processor::converter::data
15
{
16
class
ImageConverter
:
public
DataConverter
17
{
18
public
:
19
ImageConverter
(
const
ConverterType
t,
20
const
std::string&
id
,
21
const
std::string&
s
,
22
std::unique_ptr<Extractor>&& ex) :
23
DataConverter
(t, id,
s
, aron::
type
::
Descriptor
::IMAGE,
std
::move(ex))
24
{
25
}
26
27
virtual
~ImageConverter
() =
default
;
28
29
ConversionResult
convert
(
const
aron::data::VariantPtr
&
data
)
final
;
30
aron::data::VariantPtr
convert
(
const
ConversionResult&
data
,
31
const
armarx::aron::Path
& p)
final
;
32
33
void
configure
(
const
nlohmann::json& json)
override
;
34
35
protected
:
36
virtual
ConversionResult
_convert
(
const
aron::data::NDArrayPtr
&
data
) = 0;
37
virtual
aron::data::NDArrayPtr
_convert
(
const
ConversionResult&
data
,
38
const
armarx::aron::Path
& p) = 0;
39
};
40
}
// namespace armarx::armem::server::ltm::processor::converter::data
armarx::armem::server::ltm::processor::DataConverter
Definition:
Converter.h:16
armarx::aron::data::NDArrayPtr
std::shared_ptr< NDArray > NDArrayPtr
Definition:
NDArray.h:46
armarx::armem::server::ltm::processor::converter::data::ImageConverter
Definition:
Converter.h:16
armarx::aron::Path
The Path class.
Definition:
Path.h:36
armarx::aron::data::VariantPtr
std::shared_ptr< Variant > VariantPtr
Definition:
forward_declarations.h:11
armarx::armem::server::ltm::processor::DataConverter::type
const ConverterType type
Definition:
Converter.h:49
armarx::armem::server::ltm::processor::converter::data::ImageConverter::_convert
virtual ConversionResult _convert(const aron::data::NDArrayPtr &data)=0
data
uint8_t data[1]
Definition:
EtherCATFrame.h:68
armarx::armem::server::ltm::processor::converter::data::ImageConverter::configure
void configure(const nlohmann::json &json) override
Definition:
Converter.cpp:6
armarx::armem::server::ltm::processor::converter::data
Definition:
Converter.cpp:3
armarx::armem::server::ltm::processor::converter::data::ImageConverter::~ImageConverter
virtual ~ImageConverter()=default
armarx::armem::server::ltm::processor::converter::data::ImageConverter::convert
ConversionResult convert(const aron::data::VariantPtr &data) final
Definition:
Converter.cpp:11
std
Definition:
Application.h:66
armarx::armem::server::ltm::processor::converter::data::ImageConverter::ImageConverter
ImageConverter(const ConverterType t, const std::string &id, const std::string &s, std::unique_ptr< Extractor > &&ex)
Definition:
Converter.h:19
armarx::aron::type::Descriptor
Descriptor
Definition:
Descriptor.h:76
armarx::ctrlutil::s
double s(double t, double s0, double v0, double a0, double j)
Definition:
CtrlUtil.h:33
armarx::armem::server::ltm::processor::DataConverter::ConverterType
ConverterType
Definition:
Converter.h:19
NDArray.h
RobotAPI
libraries
armem
server
ltm
processors
converter
data
image
Converter.h
Generated on Sat Oct 12 2024 09:14:08 for armarx_documentation by
1.8.17