3#include "state_representation_bindings.hpp"
5#include <state_representation/State.hpp>
6#include <state_representation/geometry/Ellipsoid.hpp>
7#include <state_representation/parameters/Parameter.hpp>
9namespace py_parameter {
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();
28 const std::string& name,
const ParameterType& type,
const StateType& parameter_state_type = StateType::NONE
31 const std::string& name,
const py::object& value,
const ParameterType& type,
32 const StateType& parameter_state_type = StateType::NONE
36 void set_value(py::object value);
38 py::object get_value()
const;
45ParameterContainer interface_ptr_to_container(
const std::shared_ptr<ParameterInterface>& parameter);
47std::shared_ptr<ParameterInterface> container_to_interface_ptr(
const ParameterContainer& parameter);
54 return *container_to_interface_ptr(container)->get_parameter<T>();
58std::map<std::string, ParameterContainer>
59interface_ptr_to_container_map(
const std::map<std::string, std::shared_ptr<ParameterInterface>>& parameters);
61std::map<std::string, std::shared_ptr<ParameterInterface>>
62container_to_interface_ptr_map(
const std::map<std::string, ParameterContainer>& parameters);
64std::list<ParameterContainer>
65interface_ptr_to_container_list(
const std::list<std::shared_ptr<ParameterInterface>>& parameters);
67std::list<std::shared_ptr<ParameterInterface>>
68container_to_interface_ptr_list(
const std::list<ParameterContainer>& parameters);
void reset()
Reset the object to a post-construction state.
Class to represent name-value pairs of different types.
const std::string & get_name() const
Getter of the name attribute.
bool is_empty() const
Getter of the empty attribute.
ParameterType
The parameter value types.
StateType
The class types inheriting from State.