Armar6Converter.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <map>
4
#include <string>
5
6
#include <Eigen/Core>
7
8
#include <RobotAPI/libraries/armem_robot_state/aron/Proprioception.aron.generated.h>
9
10
#include "
ConverterInterface.h
"
11
12
13
14
namespace
armarx::armem::server::robot_state::proprioception
15
{
16
struct
ConverterValue;
17
class
ConverterTools;
18
19
20
class
Armar6Converter
:
public
ConverterInterface
21
{
22
public
:
23
24
Armar6Converter
();
25
virtual
~Armar6Converter
()
override
;
26
27
28
aron::data::DictPtr
29
convert
(
30
const
RobotUnitDataStreaming::TimeStep&
data
,
31
const
RobotUnitDataStreaming::DataStreamingDescription& description)
override
;
32
33
34
protected
:
35
36
void
process
(arondto::Proprioception& dto,
const
std::string& entryName,
const
ConverterValue
&
value
);
37
38
39
40
private
:
41
42
void
processPlatformEntry(
43
prop::arondto::Platform& dto,
44
const
std::string& fieldName,
45
const
ConverterValue
&
value
);
46
47
void
processForceTorqueEntry(
48
std::map<std::string, prop::arondto::ForceTorque>& fts,
49
const
std::vector<std::string>&
split
,
50
const
ConverterValue
&
value
);
51
52
void
processForceTorqueEntry(
53
prop::arondto::ForceTorque& ft,
54
const
std::vector<std::string>&
split
,
55
const
ConverterValue
&
value
);
56
57
bool
processJointEntry(
58
prop::arondto::Joints
& dto,
59
const
std::vector<std::string>&
split
,
60
const
ConverterValue
&
value
);
61
62
63
private
:
64
65
std::unique_ptr<ConverterTools> tools;
66
67
};
68
}
69
armarx::human::pose::model::k4a_bt_body_32::Joints
Joints
Joints with index as defined in the body model.
Definition:
k4a_bt_body_32.h:39
armarx::armem::server::robot_state::proprioception::Armar6Converter::Armar6Converter
Armar6Converter()
Definition:
Armar6Converter.cpp:19
armarx::armem::server::robot_state::proprioception
Definition:
forward_declarations.h:78
armarx::armem::server::robot_state::proprioception::ConverterValue
Definition:
ConverterTools.h:20
cxxopts::value
std::shared_ptr< Value > value()
Definition:
cxxopts.hpp:926
data
uint8_t data[1]
Definition:
EtherCATFrame.h:68
armarx::armem::server::robot_state::proprioception::ConverterInterface
Definition:
ConverterInterface.h:20
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition:
Dict.h:41
armarx::armem::server::robot_state::proprioception::Armar6Converter::convert
aron::data::DictPtr convert(const RobotUnitDataStreaming::TimeStep &data, const RobotUnitDataStreaming::DataStreamingDescription &description) override
Definition:
Armar6Converter.cpp:31
armarx::armem::server::robot_state::proprioception::Armar6Converter::~Armar6Converter
virtual ~Armar6Converter() override
Definition:
Armar6Converter.cpp:25
armarx::armem::server::robot_state::proprioception::Armar6Converter::process
void process(arondto::Proprioception &dto, const std::string &entryName, const ConverterValue &value)
Definition:
Armar6Converter.cpp:46
armarx::armem::server::robot_state::proprioception::Armar6Converter
Definition:
Armar6Converter.h:20
armarx::split
std::vector< std::string > split(const std::string &source, const std::string &splitBy, bool trimElements=false, bool removeEmptyElements=false)
Definition:
StringHelpers.cpp:36
ConverterInterface.h
RobotAPI
libraries
armem_robot_state
server
proprioception
converters
Armar6Converter.h
Generated on Sat Oct 12 2024 09:14:09 for armarx_documentation by
1.8.17