25 #include <RobotAPI/gui-plugins/LaserScannerPlugin/ui_LaserScannerPluginWidget.h>
26 #include <RobotAPI/interface/units/LaserScannerUnit.h>
56 public armarx::LaserScannerUnitListener
74 void loadSettings(QSettings* settings)
override;
79 void saveSettings(QSettings* settings)
override;
87 return "RobotControl.LaserScannerGUI";
93 void onInitComponent()
override;
98 void onConnectComponent()
override;
100 QPointer<QDialog> getConfigDialog(QWidget* parent)
override;
102 void configured()
override;
104 void reportSensorValues(
const std::string& device,
const std::string& name,
105 const LaserScan& scan,
const TimestampBasePtr& timestamp,
106 const Ice::Current&
c)
override;
108 void onNewSensorValuesReported();
109 void onDeviceSelected(
int index);
112 void newSensorValuesReported();
118 Ui::LaserScannerPluginWidget widget;
119 QPointer<SimpleConfigDialog> dialog;
121 std::string laserScannerUnitName;
122 LaserScannerUnitInterfacePrx laserScannerUnit;
123 LaserScannerInfoSeq laserScanners;
125 std::mutex scanMutex;
126 std::unordered_map<std::string, LaserScan> scans;
127 std::unordered_map<std::string, std::deque<int>> numberOfRingsHistory;
130 std::unique_ptr<QGraphicsScene> scene;