ConverterTools.cpp File Reference
#include "ConverterTools.h"
#include <SimoxUtility/algorithm/get_map_keys_values.h>
#include <SimoxUtility/algorithm/advanced.h>
#include <RobotAPI/libraries/RobotUnitDataStreamingReceiver/RobotUnitDataStreamingReceiver.h>
#include <RobotAPI/libraries/aron/core/data/variant/container/Dict.h>
+ Include dependency graph for ConverterTools.cpp:

Go to the source code of this file.

Namespaces

 armarx
 This file offers overloads of toIce() and fromIce() functions for STL container types.
 
 armarx::armem
 
 armarx::armem::server
 
 armarx::armem::server::robot_state
 
 armarx::armem::server::robot_state::proprioception
 

Macros

#define ADD_SCALAR_SETTER(container, name, type)
 
#define ADD_VECTOR3_SETTER(container, name, type)
 

Macro Definition Documentation

◆ ADD_SCALAR_SETTER

#define ADD_SCALAR_SETTER (   container,
  name,
  type 
)
Value:
container [ #name ] = []( \
const std::vector<std::string>& split, \
const ConverterValue & value) \
{ \
dto. name [split.at(1)] = getValueAs< type >(value); \
}

◆ ADD_VECTOR3_SETTER

#define ADD_VECTOR3_SETTER (   container,
  name,
  type 
)
Value:
container [ #name ] = [this]( \
const std::vector<std::string>& split, \
const ConverterValue & value) \
{ \
auto& vec = dto. name [split.at(1)]; \
auto& setter = this->vector3fSetters.at(split.at(3)); \
setter(vec, getValueAs< type >(value)); \
}
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
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
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