]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/robomon/hokuyoscan.h
Create LIDAR lib for hadling both rangefinders - SICK and Hokuyo
[eurobot/public.git] / src / robomon / hokuyoscan.h
1 #ifndef HOKUYOSCAN_H
2 #define HOKUYOSCAN_H
3
4 #include <robottype.h>
5 #include <shape_detect.h>
6 #include <QRectF>
7 #include <QPainter>
8 #include <QStyleOptionGraphicsItem>
9 #include <QWidget>
10 #include <QGraphicsItem>
11
12 class HokuyoScan : public QGraphicsItem
13 {
14     float x, y, phi;
15 public:
16     bool showShapeDetect;
17     struct hokuyo_scan_type data;
18     struct sick_scan_type sick_data;
19     HokuyoScan();
20     QRectF boundingRect() const;
21     void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
22     void setPosition(double x, double y, double phi);
23     void newScan(struct sick_scan_type *scan);
24
25     void paintShapeDetect(QPainter * painter);
26
27     ~HokuyoScan();
28 };
29
30 #endif // HOKUYOSCAN_H