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 "Armar6Converter.h"
6
8{
9
11 {
12 // TODO
13 add<Armar6Converter>("Armar6");
14 add<Armar6Converter>("ArmarDE");
15 add<Armar6Converter>("Armar7");
16 add<Armar6Converter>("Frankie");
17 add<Armar6Converter>("BiFR3");
18 add<Armar6Converter>("BiFR3_with_hand");
19 }
20
22 ConverterRegistry::get(const std::string& key) const
23 {
24 auto it = converters.find(key);
25 return it != converters.end() ? it->second.get() : nullptr;
26 }
27
28 std::vector<std::string>
30 {
31 return simox::alg::get_keys(converters);
32 }
33
34} // namespace armarx::armem::server::robot_state::proprioception