3#include <google/protobuf/repeated_field.h>
5#include <state_representation/State.hpp>
6#include <state_representation/parameters/Parameter.hpp>
8#include "state_representation/state_message.pb.h"
19template<
typename FieldT>
20std::vector<FieldT>
decoder(
const google::protobuf::RepeatedField<FieldT>& message);
29template<
typename FieldT>
30std::vector<FieldT>
decoder(
const google::protobuf::RepeatedPtrField<FieldT>& message);
38template<
typename ParamT>
44std::vector<bool>
decoder(
const google::protobuf::RepeatedField<bool>& message);
46Eigen::Vector3d
decoder(
const state_representation::proto::Vector3d& message);
47Eigen::Quaterniond
decoder(
const state_representation::proto::Quaterniond& message);
52template<
typename FieldT>
53std::vector<FieldT>
decoder(
const google::protobuf::RepeatedField<FieldT>& message) {
54 return {message.begin(), message.end()};
57template<
typename FieldT>
58std::vector<FieldT>
decoder(
const google::protobuf::RepeatedPtrField<FieldT>& message) {
59 return {message.begin(), message.end()};
Bindings to encode and decode state objects into serialised binary message.
std::vector< FieldT > decoder(const google::protobuf::RepeatedField< FieldT > &message)
Decoding helper method for a RepeatedField message into vector data.
StateType
The class types inheriting from State.