Changeset 44 in flair-dev for trunk/include/FlairMeta/Uav.h
- Timestamp:
- Jan 6, 2017, 1:58:28 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/FlairMeta/Uav.h
r13 r44 17 17 18 18 namespace flair { 19 namespace core { 20 class FrameworkManager; 21 } 22 namespace filter { 23 class Ahrs; 24 class UavMultiplex; 25 } 26 namespace actuator { 27 class Bldc; 28 } 29 namespace sensor { 30 class UsRangeFinder; 31 class BatteryMonitor; 32 class VrpnClient; 33 class Imu; 34 class Camera; 35 } 19 namespace filter { 20 class Ahrs; 21 class UavMultiplex; 22 } 23 namespace actuator { 24 class Bldc; 25 } 26 namespace sensor { 27 class UsRangeFinder; 28 class BatteryMonitor; 29 class Imu; 30 class Camera; 31 } 36 32 } 37 33 … … 39 35 namespace meta { 40 36 class MetaUsRangeFinder; 41 class MetaVrpnObject;42 37 43 38 /*! \class Uav 44 39 * 45 * \brief Base class to construct sensors/actuators depending on uav type 40 * \brief Base class to construct sensors/actuators depending on uav type. 41 * The Object is created with 42 * the FrameworkManager as parent. FrameworkManager must be created before. 43 * Only one instance of this class is allowed by program. 46 44 */ 47 45 class Uav : public core::Object { 48 46 public: 49 /* 50 typedef enum { 51 None, 52 Auto,//rt serial if hds x4 ou x8, auto ip sinon 53 AutoIP, 54 UserDefinedIP, 55 AutoSerialPort, 56 } VRPNType_t; 57 */ 58 // uav_name: for optitrack 59 Uav(core::FrameworkManager *parent, std::string name, 47 48 Uav(std::string name, 60 49 filter::UavMultiplex *multiplex = NULL); 61 50 ~Uav(); 62 void SetupVRPN(std::string optitrack_address, std::string name);63 // vrpn serial: broken, need to add serial port in uav specific code64 // void SetupVRPNSerial(core::SerialPort *vrpn_port,std::string name,int65 // VRPNSerialObjectId);66 virtual void SetupVRPNAutoIP(std::string name);67 51 68 virtual void StartSensors(void) ;52 virtual void StartSensors(void)=0; 69 53 void UseDefaultPlot(void); 70 54 actuator::Bldc *GetBldc(void) const; … … 75 59 sensor::UsRangeFinder *GetUsRangeFinder(void) const; 76 60 sensor::BatteryMonitor *GetBatteryMonitor(void) const; 77 sensor::VrpnClient *GetVrpnClient(void) const;78 meta::MetaVrpnObject *GetVrpnObject(void) const;79 61 sensor::Camera *GetVerticalCamera(void) const; 62 sensor::Camera *GetHorizontalCamera(void) const; 63 virtual std::string GetDefaultVrpnAddress(void) const{return "127.0.0.1:3883";} 80 64 81 65 protected: … … 86 70 void SetBatteryMonitor(const sensor::BatteryMonitor *battery); 87 71 void SetVerticalCamera(const sensor::Camera *verticalCamera); 72 void SetHorizontalCamera(const sensor::Camera *verticalCamera); 88 73 89 74 private: … … 94 79 sensor::UsRangeFinder *us; 95 80 MetaUsRangeFinder *meta_us; 96 sensor::VrpnClient *vrpnclient;97 MetaVrpnObject *uav_vrpn;98 81 sensor::BatteryMonitor *battery; 99 sensor::Camera *verticalCamera ;82 sensor::Camera *verticalCamera,*horizontalCamera; 100 83 }; 84 85 /*! 86 * \brief get Uav 87 * 88 * \return the Uav 89 */ 90 Uav *GetUav(void); 91 101 92 } // end namespace meta 102 93 } // end namespace flair
Note:
See TracChangeset
for help on using the changeset viewer.