Go to the documentation of this file.
53 #include <QVBoxLayout>
54 #include <QHBoxLayout>
57 #include <QPushButton>
65 QHBoxLayout* clusterNameLayout =
new QHBoxLayout();
66 clusterNameLayout->addWidget(
new QLabel(
"Cluster Name:"));
74 QVBoxLayout* layout =
new QVBoxLayout();
75 layout->addLayout(clusterNameLayout);
92 bool foundTool =
false;
93 for (
int i = 0; i < toolClasses.size(); i++)
95 if (toolClasses.at(i).contains(
"ClusterLabel"))
145 if (
config.mapGetString(
"ClusterName", &clusterName))
QLineEdit * m_clusterNameEditor
Input for entering the cluster name.
virtual void load(const rviz::Config &config)
Load a configuration @input config The configuration.
void publish()
Publishes the current cluster.
void updateClusterName()
Updates the current cluster name.
virtual void save(rviz::Config config) const
Save a configuration @input config The configuration.
ToolManager * getToolManager() const override
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
ClusterLabelPanel(QWidget *parent=0)
Constructor.
QString m_clusterName
Name of the cluster.
void resetFaces()
Resets the current face selection state.
void onInitialize()
RViz callback on inizialize.
virtual void load(const Config &config)
QPushButton * m_createClusterButton
Button for creating and publishing the cluster.
Panel for interacting with the label tool.
virtual void save(Config config) const
void setClusterName(const QString &clusterName)
Set the name under which the current cluster will be saved.
ClusterLabelTool * m_tool
Instance of the label tool from this package.
QPushButton * m_resetFacesButton
Button for resetting the current faces in cluster.
VisualizationManager * vis_manager_
rviz_map_plugin
Author(s): Sebastian Pütz
, Kristin Schmidt , Jan Philipp Vogtherr , Malte kleine Piening
autogenerated on Sun Jan 21 2024 04:06:25