Control Libraries 6.3.4
Loading...
Searching...
No Matches
parameter_container.h
1#pragma once
2
3#include "state_representation_bindings.h"
4
5#include <state_representation/State.hpp>
6#include <state_representation/geometry/Ellipsoid.hpp>
7#include <state_representation/parameters/Parameter.hpp>
8
9namespace py_parameter {
10
12 int int_value = int();
13 std::vector<int> int_array_value = std::vector<int>();
14 double double_value = double();
15 std::vector<double> double_array_value = std::vector<double>();
16 bool bool_value = bool();
17 std::vector<bool> bool_array_value= std::vector<bool>();
18 std::string string_value = std::string();
19 std::vector<std::string> string_array_value = std::vector<std::string>();
20 std::shared_ptr<State> state_pointer;
21 Eigen::MatrixXd matrix_value = Eigen::MatrixXd();
22 Eigen::VectorXd vector_value = Eigen::VectorXd();
23};
24
26public:
28 const std::string& name, const ParameterType& type, const StateType& parameter_state_type = StateType::NONE
29 );
31 const std::string& name, const py::object& value, const ParameterType& type,
32 const StateType& parameter_state_type = StateType::NONE
33 );
34 ParameterContainer(const ParameterContainer& parameter);
35
36 void set_value(const py::object& value);
37
38 py::object get_value();
39
40 ParameterValues values;
41};
42
43ParameterContainer interface_ptr_to_container(const std::shared_ptr<ParameterInterface>& parameter);
44
45std::shared_ptr<ParameterInterface> container_to_interface_ptr(const ParameterContainer& parameter);
46
47std::map<std::string, ParameterContainer>
48interface_ptr_to_container_map(const std::map<std::string, std::shared_ptr<ParameterInterface>>& parameters);
49
50std::map<std::string, std::shared_ptr<ParameterInterface>>
51container_to_interface_ptr_map(const std::map<std::string, ParameterContainer>& parameters);
52
53std::list<ParameterContainer>
54interface_ptr_to_container_list(const std::list<std::shared_ptr<ParameterInterface>>& parameters);
55
56std::list<std::shared_ptr<ParameterInterface>>
57container_to_interface_ptr_list(const std::list<ParameterContainer>& parameters);
58
59}// namespace py_parameter
ParameterType
The parameter value types.
StateType
The class types inheriting from State.
Definition: StateType.hpp:13