GeoPoint3D.h 1.02 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#pragma once

#include "ros_bridge/include/JsonMethodes.h"
#include "ros_bridge/include/MessageBaseClass.h"
#include "ros_bridge/include/GenericMessages.h"

#include <QGeoCoordinate>
#include <QObject>


typedef ROSBridge::MessageBaseClass ROSMsg;
typedef ROSBridge::GenericMessages::GeographicMsgs::GeoPoint ROSGeoPoint;
namespace MsgGroups = ROSBridge::MessageGroups;
Valentin Platzgummer's avatar
Valentin Platzgummer committed
14
class GeoPoint : public QObject, public ROSGeoPoint
15 16 17 18 19
{
    Q_OBJECT
public:
    typedef MsgGroups::GeoPointGroup Group;

Valentin Platzgummer's avatar
Valentin Platzgummer committed
20 21
    GeoPoint(QObject *parent = nullptr);
    GeoPoint(double latitude,
22 23 24
               double longitude,
               double altitude,
               QObject *parent = nullptr);
Valentin Platzgummer's avatar
Valentin Platzgummer committed
25
    GeoPoint(const GeoPoint& p,
26
               QObject *parent = nullptr);
Valentin Platzgummer's avatar
Valentin Platzgummer committed
27
    GeoPoint(const ROSGeoPoint& p,
28
               QObject *parent = nullptr);
Valentin Platzgummer's avatar
Valentin Platzgummer committed
29
    GeoPoint(const QGeoCoordinate& p,
30 31
               QObject *parent = nullptr);

Valentin Platzgummer's avatar
Valentin Platzgummer committed
32 33 34
    virtual GeoPoint *Clone() const override;
    GeoPoint &operator=(const GeoPoint&p);
    GeoPoint &operator=(const QGeoCoordinate&p);
35 36 37 38

};