HEBI C++ API  3.8.0
plugin_config.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <map>
4 #include <string>
5 #include <vector>
6 
7 namespace hebi {
8 namespace experimental {
9 namespace arm {
10 
11 // Each plugin can have a dictionary of three types of parameters.
12 struct PluginConfig {
13  PluginConfig(const std::string& type, const std::string& name)
14  : type_(type), name_(name)
15  { }
16  std::string type_;
17  std::string name_;
18  std::map<std::string, bool> bools_;
19  std::map<std::string, float> floats_;
20  std::map<std::string, std::string> strings_;
21  std::map<std::string, std::vector<bool>> bool_lists_;
22  std::map<std::string, std::vector<float>> float_lists_;
23  std::map<std::string, std::vector<std::string>> string_lists_;
24 };
25 
26 } // namespace arm
27 } // namespace experimental
28 } // namespace hebi
PluginConfig(const std::string &type, const std::string &name)
Definition: plugin_config.hpp:13
std::map< std::string, float > floats_
Definition: plugin_config.hpp:19
Definition: arm.cpp:8
std::map< std::string, std::vector< float > > float_lists_
Definition: plugin_config.hpp:22
std::map< std::string, bool > bools_
Definition: plugin_config.hpp:18
std::string name_
Definition: plugin_config.hpp:17
std::string type_
Definition: plugin_config.hpp:16
std::map< std::string, std::string > strings_
Definition: plugin_config.hpp:20
std::map< std::string, std::vector< bool > > bool_lists_
Definition: plugin_config.hpp:21
std::map< std::string, std::vector< std::string > > string_lists_
Definition: plugin_config.hpp:23
Definition: plugin_config.hpp:12