GeoPoint3D.h 885 Bytes
Newer Older
1 2 3 4 5 6
#pragma once

#include <QGeoCoordinate>
#include <QObject>


7 8
typedef ros_bridge::GenericMessages::GeographicMsgs::GeoPoint ROSGeoPoint;
namespace MsgGroups = ros_bridge::MessageGroups;
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
class GeoPoint3D : public QObject, public ROSGeoPoint
{
    Q_OBJECT
public:
    typedef MsgGroups::GeoPointGroup Group;

    GeoPoint3D(QObject *parent = nullptr);
    GeoPoint3D(double latitude,
               double longitude,
               double altitude,
               QObject *parent = nullptr);
    GeoPoint3D(const GeoPoint3D& p,
               QObject *parent = nullptr);
    GeoPoint3D(const ROSGeoPoint& p,
               QObject *parent = nullptr);
    GeoPoint3D(const QGeoCoordinate& p,
               QObject *parent = nullptr);

    virtual GeoPoint3D *Clone() const override;
    GeoPoint3D &operator=(const GeoPoint3D&p);
    GeoPoint3D &operator=(const QGeoCoordinate&p);

};