39 #include <boost/functional/factory.hpp>
41 #include <moveit/task_constructor/properties.h>
47 namespace mtc = ::moveit::task_constructor;
55 if (!mtc_prop.
value().empty())
56 value = boost::any_cast<std::string>(mtc_prop.
value());
67 T
value = !mtc_prop.
value().empty() ? boost::any_cast<T>(mtc_prop.
value()) : T();
77 registerType<float>(&floatFactory<float>);
78 registerType<double>(&floatFactory<double>);
88 if (type_name.empty())
103 return it->second(QString::fromStdString(prop_name), prop, scene, display_context);
112 return it->second(stage.
properties(), scene, display_context);
124 for (
int i = 0, end =
root->numChildren(); i != end; ++i) {
125 if (
root->childAt(i)->getName() == name)
134 for (
auto& prop : properties) {
135 const QString&
name = QString::fromStdString(prop.first);
142 root->addChild(rviz_prop);
146 if (
root->numChildren() == 0)
152 const std::string& description,
const std::string& value,
157 old->
setValue(QString::fromStdString(value));
161 QString::fromStdString(description));