41 #include <QApplication>
43 #include <QFormLayout>
47 #include <QVBoxLayout>
56 QVBoxLayout* layout =
new QVBoxLayout();
57 layout->setAlignment(Qt::AlignTop);
62 "Setup 3D Perception Sensors",
63 "Configure your 3D sensors to work with MoveIt. Please see <a "
64 "href='https://moveit.picknik.ai/galactic/doc/examples/perception_pipeline/perception_pipeline_tutorial.html"
65 "'>Perception Documentation</a> for more details.",
67 layout->addWidget(header);
70 QSpacerItem* blank_space =
new QSpacerItem(1, 8);
71 layout->addSpacerItem(blank_space);
74 QLabel* plugin_field_title =
new QLabel(
this);
75 plugin_field_title->setText(
"Optionally choose a type of 3D sensor plugin to configure:");
76 layout->addWidget(plugin_field_title);
81 connect(
sensor_plugin_field_, SIGNAL(currentIndexChanged(
int)),
this, SLOT(sensorPluginChanged(
int)));
87 QFormLayout* point_cloud_form_layout =
new QFormLayout();
88 point_cloud_form_layout->setContentsMargins(0, 15, 0, 15);
138 QFormLayout* depth_map_form_layout =
new QFormLayout();
139 depth_map_form_layout->setContentsMargins(0, 15, 0, 15);
196 layout->setAlignment(Qt::AlignTop);
199 this->setLayout(layout);
220 params[
"sensor_plugin"] =
"occupancy_map_monitor/PointCloudOctomapUpdater";
235 params[
"sensor_plugin"] =
"occupancy_map_monitor/DepthImageOctomapUpdater";
239 params[
"far_clipping_plane_distance"] =
far_clipping_field_->text().trimmed().toStdString();
256 void PerceptionWidget::sensorPluginChanged(
int index)
281 static bool has_loaded =
false;
295 for (
auto& sensor_plugin_config : sensors_vec_map)
297 if (sensor_plugin_config.at(
"sensor_plugin") == std::string(
"occupancy_map_monitor/PointCloudOctomapUpdater"))
301 max_range_field_->setText(QString(sensor_plugin_config.at(
"max_range").c_str()));
308 else if (sensor_plugin_config.at(
"sensor_plugin") == std::string(
"occupancy_map_monitor/DepthImageOctomapUpdater"))
312 queue_size_field_->setText(QString(sensor_plugin_config.at(
"queue_size").c_str()));
313 near_clipping_field_->setText(QString(sensor_plugin_config.at(
"near_clipping_plane_distance").c_str()));
314 far_clipping_field_->setText(QString(sensor_plugin_config.at(
"far_clipping_plane_distance").c_str()));
327 #include <pluginlib/class_list_macros.hpp>
PLUGINLIB_EXPORT_CLASS(cached_ik_kinematics_plugin::CachedIKKinematicsPlugin< kdl_kinematics_plugin::KDLKinematicsPlugin >, kinematics::KinematicsBase)
void clearSensorPluginConfig()
Clear the sensor plugin configuration parameter list.
void setConfig(const SensorParameters ¶meters)
const std::vector< SensorParameters > & getSensorPluginConfig()
std::map< std::string, std::string > SensorParameters