mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 22:26:35 +00:00
45c19baa45
- autopilot -> drone_controller - rtsp_ai_player -> ai_controller - added top level qmake project file - updated documentation - moved small demo applications from tmp/ to misc/
47 lines
928 B
C++
47 lines
928 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "az_action_point.h"
|
|
#include "az_coordinate.h"
|
|
|
|
using namespace std;
|
|
|
|
const double INVALID_HEIGHT = -100000;
|
|
|
|
enum AzGeofenceType { AZ_GEOFENCE_TYPE_NONE = 0, AZ_GEOFENCE_TYPE_INCLUSION = 1, AZ_GEOFENCE_TYPE_EXCLUSION = 2 };
|
|
|
|
class AzGeofence
|
|
{
|
|
public:
|
|
vector<AzCoordinate> coordinates;
|
|
AzGeofenceType type;
|
|
};
|
|
|
|
class AzMission
|
|
{
|
|
public:
|
|
AzMission(string filename);
|
|
|
|
const vector<AzGeofence> &getGeofences(void) const;
|
|
|
|
const vector<AzActionPoint> &getActionPoints(void) const;
|
|
|
|
int getOperationalHeight(void) const;
|
|
|
|
AzCoordinate getReturnPoint(void) const;
|
|
|
|
friend ostream &operator<<(ostream &os, const AzMission &obj);
|
|
|
|
private:
|
|
void parse(void);
|
|
|
|
string mFilename;
|
|
vector<AzGeofence> mGeofences;
|
|
vector<AzActionPoint> mActionPoints;
|
|
int mOperationalHeight;
|
|
AzCoordinate mReturnPoint;
|
|
};
|