HEBI C++ API  3.12.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 arm {
9 
10 // Each plugin can have a dictionary of three types of parameters.
11 struct PluginConfig {
12  PluginConfig(const std::string& type, const std::string& name)
13  : type_(type), name_(name)
14  { }
15  std::string type_;
16  std::string name_;
17  std::map<std::string, bool> bools_;
18  std::map<std::string, double> floats_;
19  std::map<std::string, std::string> strings_;
20  std::map<std::string, std::vector<bool>> bool_lists_;
21  std::map<std::string, std::vector<double>> float_lists_;
22  std::map<std::string, std::vector<std::string>> string_lists_;
23 };
24 
25 } // namespace arm
26 } // namespace hebi
std::map< std::string, std::vector< bool > > bool_lists_
Definition: plugin_config.hpp:20
Definition: plugin_config.hpp:11
std::map< std::string, bool > bools_
Definition: plugin_config.hpp:17
PluginConfig(const std::string &type, const std::string &name)
Definition: plugin_config.hpp:12
Definition: arm.cpp:10
Definition: arm.cpp:11
std::map< std::string, double > floats_
Definition: plugin_config.hpp:18
std::string type_
Definition: plugin_config.hpp:15
std::map< std::string, std::vector< std::string > > string_lists_
Definition: plugin_config.hpp:22
std::string name_
Definition: plugin_config.hpp:16
std::map< std::string, std::vector< double > > float_lists_
Definition: plugin_config.hpp:21
std::map< std::string, std::string > strings_
Definition: plugin_config.hpp:19