40 remote_gui_plugin_->createOrUpdateTab(aron_component_config_plugin_->buildRemoteGui(
"Config"),
44 std::lock_guard lock(write_mutex);
45 if (aron_component_config_plugin_->updateRemoteGui(prx))
47 remote_gui_plugin_->createOrUpdateTab(
"",
48 aron_component_config_plugin_
56 std::lock_guard lock(write_mutex);
59 aron_component_config_plugin_->config_.getWriteBuffer();
62 aron_component_config_plugin_->config_.commitWrite();
64 periodicTask->start();
68 AronComponentConfigExample::onDisconnectComponent()
73 AronComponentConfigExample::onExitComponent()
78 AronComponentConfigExample::createPropertyDefinitions()
81 auto& config = aron_component_config_plugin_->config_.getWriteBuffer();
82 config.boolMember =
true;
83 config.floatMember = 100.0f;
84 config.intMember = 1000;
85 config.stringMember =
"initial";
86 config.longMember = 0;
90 .insert(config.subMember.subsubMember.intListMember.end(), {1, 2, 3, 4, 5, 6});
94 .insert(config.subMember.subsubMember.stringListMember.end(), {
"a",
"b",
"c",
"d",
"e"});
95 config.subMember.subsubMember.intDictMember.emplace(
"int1", 1);
96 config.subMember.subsubMember.intDictMember.emplace(
"int2", 2);
97 config.subMember.subsubMember.stringDictMember.emplace(
"string1",
"blub");
98 config.subMember.subsubMember.stringDictMember.emplace(
"string2",
"duh");
99 aron_component_config_plugin_->config_.commitWrite();
104 AronComponentConfigExample::getDefaultName()
const
106 return "ComponentConfigTest";
109 AronComponentConfigExample::AronComponentConfigExample()
111 addPlugin(remote_gui_plugin_,
"");
112 addPlugin(aron_component_config_plugin_,
"");
115 AronComponentConfigExamplePropertyDefinitions::AronComponentConfigExamplePropertyDefinitions(std::string prefix) :