ConverterRegistry.cpp
Go to the documentation of this file.
1
#include "
ConverterRegistry.h
"
2
3
#include <SimoxUtility/algorithm/get_map_keys_values.h>
4
5
#include "
ArmarDEConverter.h
"
6
7
namespace
armarx::armem::server::robot_state::exteroception
8
{
9
10
ConverterRegistry::ConverterRegistry
()
11
{
12
add<ArmarDEConverter>(
"ArmarDE"
);
13
add<ArmarDEConverter>(
"Armar7"
);
14
}
15
16
ConverterInterface
*
17
ConverterRegistry::get
(
const
std::string& key)
const
18
{
19
auto
it = converters.find(key);
20
return
it != converters.end() ? it->second.get() :
nullptr
;
21
}
22
23
std::vector<std::string>
24
ConverterRegistry::getKeys
()
const
25
{
26
return
simox::alg::get_keys(converters);
27
}
28
29
}
// namespace armarx::armem::server::robot_state::exteroception
armarx::armem::server::robot_state::exteroception::ConverterInterface
Definition:
ConverterInterface.h:21
armarx::armem::server::robot_state::exteroception::ConverterRegistry::ConverterRegistry
ConverterRegistry()
Definition:
ConverterRegistry.cpp:10
ArmarDEConverter.h
armarx::armem::server::robot_state::exteroception
Definition:
ArmarDEConverter.cpp:18
ConverterRegistry.h
armarx::armem::server::robot_state::exteroception::ConverterRegistry::getKeys
std::vector< std::string > getKeys() const
Definition:
ConverterRegistry.cpp:24
armarx::armem::server::robot_state::exteroception::ConverterRegistry::get
ConverterInterface * get(const std::string &key) const
Definition:
ConverterRegistry.cpp:17
RobotAPI
libraries
armem_robot_state
server
exteroception
converters
ConverterRegistry.cpp
Generated on Sat Mar 29 2025 09:17:29 for armarx_documentation by
1.8.17