Changeset 68 in flair-dev for trunk/include
- Timestamp:
- Mar 6, 2018, 12:14:17 PM (7 years ago)
- Location:
- trunk/include
- Files:
-
- 10 added
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/FlairCore/FrameworkManager.h
r45 r68 107 107 * 108 108 * \param log_path path to store logs 109 */ 110 void SetupLogger(std::string log_path); 109 * \param stackSize stack size in bytes for logging thread 110 */ 111 void SetupLogger(std::string log_path,uint32_t stackSize=1024*32); 111 112 112 113 /*! -
trunk/include/FlairCore/RangeFinderPlot.h
r13 r68 20 20 namespace flair { 21 21 namespace core { 22 class cvmatrix;22 class Matrix; 23 23 } 24 24 } … … 61 61 std::string x_name, float xmin, float xmax, 62 62 std::string y_name, float ymin, float ymax, 63 const core:: cvmatrix *datas, float start_angle,63 const core::Matrix *datas, float start_angle, 64 64 float end_angle, uint32_t nb_samples); 65 65 … … 87 87 void ExtraXmlEvent(void){}; 88 88 89 const core:: cvmatrix *datas;89 const core::Matrix *datas; 90 90 }; 91 91 -
trunk/include/FlairCore/Thread.h
r50 r68 46 46 * \param name name 47 47 * \param priority priority, should be >20 (<20 is reserved for internal use) 48 * \param stackSize stack size in bytes 48 49 */ 49 50 Thread(const Object *parent, std::string name, 50 uint8_t priority ); // priority>20, for real time only51 uint8_t priority,uint32_t stackSize=1024*128); 51 52 52 53 /*! -
trunk/include/FlairCore/io_data.h
r32 r68 116 116 117 117 /*! 118 * \brief Set data time 119 * 118 * \brief Set data time, also caluculates the delta time based on last call 119 * 120 * TIME_INFINITE represents an unitialized time 121 * 120 122 * \param time time 121 123 */ 122 124 void SetDataTime(Time time); 125 126 /*! 127 * \brief Set data time and delta time (thus delta time is not based on last call) 128 * 129 * TIME_INFINITE represents an unitialized time 130 * 131 * \param time time 132 * \param deltaTime delta time 133 */ 134 void SetDataTime(Time time,Time deltaTime); 123 135 124 136 /*! 125 137 * \brief Data time 126 138 * 139 * TIME_INFINITE represents an unitialized time. 140 * 127 141 * \return data time 128 142 */ 129 143 Time DataTime(void) const; 144 145 /*! 146 * \brief Data delta time 147 * 148 * TIME_INFINITE represents an unitialized time. 149 * 150 * \return data delta time 151 */ 152 Time DataDeltaTime(void) const; 153 154 /*! 155 * \brief Get data time and delta time 156 * 157 * TIME_INFINITE represents an unitialized time 158 * 159 * \param time time 160 * \param deltaTime delta time 161 */ 162 void GetDataTime(Time &time,Time &deltaTime) const; 130 163 131 164 /*! -
trunk/include/FlairFilter/AhrsComplementaryFilter.h
r62 r68 63 63 void UpdateFrom(const core::io_data *data); 64 64 65 core::Time previous_time;66 67 bool isInit;68 65 core::Quaternion QHat; 69 66 core::Vector3Df BHat; -
trunk/include/FlairFilter/ButterworthLowPass.h
r50 r68 18 18 namespace flair { 19 19 namespace core { 20 class cvmatrix;20 class Matrix; 21 21 } 22 22 namespace gui { … … 91 91 * \return filtered output 92 92 */ 93 core:: cvmatrix *Matrix(void) const;93 core::Matrix *GetMatrix(void) const; 94 94 95 95 /*! -
trunk/include/FlairFilter/ControlLaw.h
r13 r68 21 21 } 22 22 namespace core { 23 class cvmatrix;23 class Matrix; 24 24 } 25 25 } … … 88 88 * \brief Reset the internal state of the control law 89 89 * 90 * Does n't do anything by default90 * Does nothing by default 91 91 * 92 92 */ … … 100 100 * 101 101 */ 102 core:: cvmatrix *input;102 core::Matrix *input; 103 103 104 104 /*! … … 109 109 * 110 110 */ 111 core:: cvmatrix *output;111 core::Matrix *output; 112 112 113 113 private: -
trunk/include/FlairFilter/EulerDerivative.h
r50 r68 18 18 namespace flair { 19 19 namespace core { 20 class cvmatrix;20 class Matrix; 21 21 } 22 22 namespace gui { … … 56 56 EulerDerivative(const core::IODevice *parent, 57 57 const gui::LayoutPosition *position, std::string name, 58 const core:: cvmatrix *init_value = NULL);58 const core::Matrix *init_value = NULL); 59 59 60 60 /*! … … 79 79 * \return filtered output 80 80 */ 81 core:: cvmatrix *Matrix(void) const;81 core::Matrix *GetMatrix(void) const; 82 82 83 83 private: -
trunk/include/FlairFilter/LowPassFilter.h
r50 r68 18 18 namespace flair { 19 19 namespace core { 20 class cvmatrix;20 class Matrix; 21 21 } 22 22 namespace gui { … … 56 56 LowPassFilter(const core::IODevice *parent, 57 57 const gui::LayoutPosition *position, std::string name, 58 const core:: cvmatrix *init_value = NULL);58 const core::Matrix *init_value = NULL); 59 59 60 60 /*! … … 79 79 * \return filtered output 80 80 */ 81 core:: cvmatrix *Matrix(void) const;81 core::Matrix *GetMatrix(void) const; 82 82 83 83 private: -
trunk/include/FlairFilter/PidThrust.h
r62 r68 55 55 56 56 /*! 57 * \brief Reset the control law 58 * equivalent to: 59 * ResetI(); 60 * SetDefaultOffset(); 61 * SetValues(0,0); 62 * 63 */ 64 void Reset(void); 65 66 /*! 57 67 * \brief Reset integral to 0 58 68 * … … 78 88 * \return current offset 79 89 */ 80 float GetOffset(void); 90 float GetOffset(void) const; 91 92 /*! 93 * \brief Get intergral part 94 * 95 * \return current integral part 96 */ 97 float GetIntegral(void) const; 81 98 82 99 /*! -
trunk/include/FlairFilter/TrajectoryGenerator1D.h
r62 r68 18 18 namespace flair { 19 19 namespace core { 20 class cvmatrix;20 class Matrix; 21 21 } 22 22 namespace gui { … … 152 152 * \return matrix 153 153 */ 154 core:: cvmatrix *Matrix(void) const;154 core::Matrix *GetMatrix(void) const; 155 155 156 156 private: -
trunk/include/FlairFilter/TrajectoryGenerator2DCircle.h
r50 r68 19 19 namespace flair { 20 20 namespace core { 21 class cvmatrix;21 class Matrix; 22 22 } 23 23 namespace gui { … … 131 131 * \return matrix 132 132 */ 133 core:: cvmatrix *Matrix(void) const;133 core::Matrix *GetMatrix(void) const; 134 134 135 135 /*! -
trunk/include/FlairMeta/Uav.h
r55 r68 31 31 class Camera; 32 32 class NmeaGps; 33 class PressureSensor; 33 34 } 34 35 } … … 64 65 sensor::Camera *GetHorizontalCamera(void) const; 65 66 sensor::NmeaGps *GetGps(void) const; 67 sensor::PressureSensor *GetPressureSensor(void) const; 66 68 virtual std::string GetDefaultVrpnAddress(void) const{return "127.0.0.1:3883";} 67 69 virtual bool isReadyToFly(void) const { return true;} … … 77 79 void SetHorizontalCamera(const sensor::Camera *verticalCamera); 78 80 void SetGps(const sensor::NmeaGps *gps); 81 void SetPressureSensor(const sensor::PressureSensor *pressureSensor); 79 82 80 83 private: … … 88 91 sensor::BatteryMonitor *battery; 89 92 sensor::Camera *verticalCamera,*horizontalCamera; 93 sensor::PressureSensor *pressureSensor; 90 94 }; 91 95 -
trunk/include/FlairSensorActuator/BlCtrlV2_x4_speed.h
r50 r68 24 24 namespace flair { 25 25 namespace core { 26 class cvmatrix;26 class Matrix; 27 27 class I2cPort; 28 28 } … … 97 97 98 98 // matrix 99 core:: cvmatrix *input;100 core:: cvmatrix *output;99 core::Matrix *input; 100 core::Matrix *output; 101 101 102 102 int tested_motor; -
trunk/include/FlairSensorActuator/Bldc.h
r50 r68 19 19 namespace flair { 20 20 namespace core { 21 class cvmatrix;21 class Matrix; 22 22 } 23 23 namespace gui { … … 96 96 * 97 97 */ 98 core:: cvmatrix *Output(void) const;98 core::Matrix *Output(void) const; 99 99 100 100 /*! … … 161 161 162 162 protected: 163 core:: cvmatrix *output;163 core::Matrix *output; 164 164 165 165 private: -
trunk/include/FlairSensorActuator/EmulatedController.h
r50 r68 21 21 namespace flair { 22 22 namespace core { 23 class cvmatrix;23 class Matrix; 24 24 } 25 25 namespace gui { … … 52 52 bool ProcessMessage(core::Message *msg); 53 53 bool IsDataFrameReady(); 54 void AcquireAxisData(core:: cvmatrix &axis); //responsible for getting the axis data from the hardware55 void AcquireButtonData(core:: cvmatrix &button); //responsible for getting the button data from the hardware54 void AcquireAxisData(core::Matrix &axis); //responsible for getting the axis data from the hardware 55 void AcquireButtonData(core::Matrix &button); //responsible for getting the button data from the hardware 56 56 bool ControllerInitialization(); 57 57 58 58 private: 59 59 enum class DataType { axis,button }; 60 void ComputeControllerData(DataType dataType, core:: cvmatrix &data);61 template<typename T> void fillVectorNoMutex(core:: cvmatrix &vector,T data[],unsigned int size);62 void fillVectorNoMutex(core:: cvmatrix &destination,core::cvmatrix &source,unsigned int size);60 void ComputeControllerData(DataType dataType, core::Matrix &data); 61 template<typename T> void fillVectorNoMutex(core::Matrix &vector,T data[],unsigned int size); 62 void fillVectorNoMutex(core::Matrix &destination,core::Matrix &source,unsigned int size); 63 63 struct StepData { 64 64 unsigned int durationMs; //milliseconds 65 core:: cvmatrix *axisData;66 core:: cvmatrix *buttonData;65 core::Matrix *axisData; 66 core::Matrix *buttonData; 67 67 std::string description; 68 68 void Print(); -
trunk/include/FlairSensorActuator/HokuyoUTM30Lx.h
r50 r68 23 23 namespace flair { 24 24 namespace core { 25 class cvmatrix;25 class Matrix; 26 26 class SerialPort; 27 27 class Mutex; … … 56 56 void getMesure(int startStep, int endStep, int clusterCount, int interval, 57 57 int scanNumber = 0); 58 core:: cvmatrix *getDatas(void);58 core::Matrix *getDatas(void); 59 59 60 60 /*! … … 78 78 79 79 // matrix 80 core:: cvmatrix *output;80 core::Matrix *output; 81 81 82 82 std::queue<std::string> bufRet; -
trunk/include/FlairSensorActuator/HostEthController.h
r50 r68 26 26 namespace flair { 27 27 namespace core { 28 class cvmatrix;28 class Matrix; 29 29 class TcpSocket; 30 30 class UdpSocket; … … 81 81 GetAxisData() = 0; // responsible for getting the axis data from the hardware 82 82 unsigned int axisNumber; 83 core:: cvmatrix *axis;83 core::Matrix *axis; 84 84 gui::DataPlot1D **axisPlot; 85 85 uint32_t bitsPerAxis; … … 90 90 // from the hardware 91 91 unsigned int buttonNumber; 92 core:: cvmatrix *button;92 core::Matrix *button; 93 93 uint8_t buttonOffset; 94 94 bool meaningfulDataAvailable; -
trunk/include/FlairSensorActuator/LaserRangeFinder.h
r50 r68 19 19 namespace core { 20 20 class FrameworkManager; 21 class cvmatrix;21 class Matrix; 22 22 } 23 23 namespace gui { … … 102 102 * \return output matrix 103 103 */ 104 core:: cvmatrix *output;104 core::Matrix *output; 105 105 106 106 /*! -
trunk/include/FlairSensorActuator/RadioReceiver.h
r50 r68 19 19 namespace flair { 20 20 namespace core { 21 class cvmatrix;21 class Matrix; 22 22 } 23 23 namespace gui { … … 87 87 void UpdateFrom(const core::io_data *data){}; 88 88 89 core:: cvmatrix *output;89 core::Matrix *output; 90 90 bool is_connected; 91 91 unsigned int nb_channels; -
trunk/include/FlairSensorActuator/SimuBldc.h
r50 r68 20 20 class SharedMem; 21 21 class IODevice; 22 class cvmatrix;22 class Matrix; 23 23 } 24 24 namespace gui { … … 40 40 * \brief Constructor 41 41 * 42 * Construct a SimuBldc . Control part.42 * Construct a SimuBldc 43 43 * 44 44 * \param parent parent … … 53 53 54 54 /*! 55 * \brief Constructor56 *57 * Construct a SimuBldc. Simulation part.58 *59 * \param parent parent60 * \param name name61 * \param motors_count number of motors62 * \param modelId Model id63 * \param deviceId Bldc id of the Model64 */65 SimuBldc(const core::Object *parent, std::string name, uint8_t motors_count,66 uint32_t modelId,uint32_t deviceId);67 68 /*!69 55 * \brief Destructor 70 56 * 71 57 */ 72 58 ~SimuBldc(); 73 74 /*!75 * \brief Get motors speeds.76 *77 * This function should only be used for the simulation part.78 *79 * \param value array to store motors speeds80 */81 void GetSpeeds(float *value) const;82 59 83 60 /*! … … 113 90 core::SharedMem *shmem; 114 91 gui::DoubleSpinBox *k; 92 char *buf; 93 115 94 }; 116 95 } // end namespace actuator -
trunk/include/FlairSensorActuator/SimuCamera.h
r50 r68 35 35 * \brief Constructor 36 36 * 37 * Construct a SimuCamera. Control part.37 * Construct a SimuCamera. 38 38 * It will be child of the FrameworkManager. 39 39 * … … 50 50 uint8_t priority); 51 51 52 /*!53 * \brief Constructor54 *55 * Construct a SimuCamera. Simulation part.\n56 * The Thread of this class should not be run.57 *58 * \param parent parent59 * \param name name60 * \param width width61 * \param height height62 * \param channels number of channels63 * \param modelId Model id64 * \param deviceId Camera id of the Model65 */66 SimuCamera(const core::IODevice *parent, std::string name, uint16_t width,67 uint16_t height, uint8_t channels, uint32_t modelId,uint32_t deviceId);68 52 69 53 /*! -
trunk/include/FlairSensorActuator/SimuGps.h
r62 r68 38 38 * \brief Constructor 39 39 * 40 * Construct a simulation GPS . Control part.40 * Construct a simulation GPS 41 41 * It will be child of the FrameworkManager. 42 42 * … … 49 49 SimuGps(std::string name, 50 50 NmeaGps::NMEAFlags_t NMEAFlags, uint32_t modelId,uint32_t deviceId,uint8_t priority); 51 52 /*!53 * \brief Constructor54 *55 * Construct a simulation GPS. Simulation part.\n56 * The Thread of this class should not be run.57 *58 * \param parent parent59 * \param name name60 * \param modelId Model id61 * \param deviceId Gps id of the Model62 */63 SimuGps(const core::IODevice *parent, std::string name, uint32_t modelId,uint32_t deviceId);64 51 65 52 /*! … … 77 64 * \param data data from the parent to process 78 65 */ 79 void UpdateFrom(const core::io_data *data) ;66 void UpdateFrom(const core::io_data *data){}; 80 67 81 68 /*! -
trunk/include/FlairSensorActuator/SimuImu.h
r56 r68 38 38 * \brief Constructor 39 39 * 40 * Construct a SimuImu. Control part.40 * Construct a SimuImu. 41 41 * It will be child of the FrameworkManager. 42 42 * … … 48 48 SimuImu(std::string name, 49 49 uint32_t modelId,uint32_t deviceId, uint8_t priority); 50 51 /*!52 * \brief Constructor53 *54 * Construct a SimuImu. Simulation part.\n55 * The Thread of this class should not be run.56 *57 * \param parent parent58 * \param name name59 * \param modelId Model id60 * \param deviceId Imu id of the Model61 */62 SimuImu(const core::IODevice *parent, std::string name, uint32_t modelId,uint32_t deviceId);63 50 64 51 /*! … … 84 71 * \param data data from the parent to process 85 72 */ 86 void UpdateFrom(const core::io_data *data) ;73 void UpdateFrom(const core::io_data *data){}; 87 74 88 75 typedef struct { -
trunk/include/FlairSensorActuator/SimuLaser.h
r50 r68 37 37 * \brief Constructor 38 38 * 39 * Construct a SimuUs. Control part. 40 * It will be child of the FrameworkManager. 39 * Construct a SimuUs. 41 40 * 42 41 * \param name name … … 47 46 SimuLaser(std::string name, 48 47 uint32_t modelId,uint32_t deviceId, uint8_t priority); 49 50 /*!51 * \brief Constructor52 *53 * Construct a SimuUs. Simulation part.\n54 * The Thread of this class should not be run.55 *56 * \param parent parent57 * \param name name58 * \param modelId Model id59 * \param deviceId LaserRangeFinder id of the Model60 */61 SimuLaser(const core::IODevice *parent, std::string name, uint32_t modelId,uint32_t deviceId);62 48 63 49 /*! -
trunk/include/FlairSensorActuator/SimuUs.h
r50 r68 37 37 * \brief Constructor 38 38 * 39 * Construct a SimuUs. Control part.39 * Construct a SimuUs. 40 40 * It will be child of the FrameworkManager. 41 41 * … … 47 47 SimuUs(std::string name, 48 48 uint32_t modelId,uint32_t deviceId, uint8_t priority); 49 50 /*!51 * \brief Constructor52 *53 * Construct a SimuUs. Simulation part.\n54 * The Thread of this class should not be run.55 *56 * \param parent parent57 * \param name name58 * \param modelId Model id59 * \param deviceId UsRangeFinder id of the Model60 */61 SimuUs(const core::IODevice *parent, std::string name, uint32_t modelId,uint32_t deviceId);62 49 63 50 /*! -
trunk/include/FlairSensorActuator/TargetController.h
r50 r68 27 27 namespace core { 28 28 class FrameworkManager; 29 class cvmatrix;29 class Matrix; 30 30 class Socket; 31 31 class io_data; … … 82 82 // axis stuff 83 83 unsigned int axisNumber; 84 core:: cvmatrix *axis = NULL;85 virtual void AcquireAxisData(core:: cvmatrix &axis) = 0; // responsible for84 core::Matrix *axis = NULL; 85 virtual void AcquireAxisData(core::Matrix &axis) = 0; // responsible for 86 86 // getting the axis 87 87 // data from the … … 90 90 // button stuff 91 91 unsigned int buttonNumber; 92 core:: cvmatrix *button = NULL;93 virtual void AcquireButtonData(core:: cvmatrix &button) = 0; // responsible for92 core::Matrix *button = NULL; 93 virtual void AcquireButtonData(core::Matrix &button) = 0; // responsible for 94 94 // getting the 95 95 // button data -
trunk/include/FlairSensorActuator/TargetEthController.h
r50 r68 27 27 namespace core { 28 28 class FrameworkManager; 29 class cvmatrix;29 class Matrix; 30 30 class TcpSocket; 31 31 class UdpSocket; … … 62 62 63 63 bool IsDataFrameReady(); 64 void AcquireAxisData(core:: cvmatrix &axis); // responsible for getting the64 void AcquireAxisData(core::Matrix &axis); // responsible for getting the 65 65 // axis data from the hardware 66 void AcquireButtonData(core:: cvmatrix &button); // responsible for getting the66 void AcquireButtonData(core::Matrix &button); // responsible for getting the 67 67 // button data from the 68 68 // hardware -
trunk/include/FlairSensorActuator/UsRangeFinder.h
r50 r68 17 17 18 18 namespace flair { 19 namespace core {20 class cvmatrix;21 }22 namespace gui {23 class Tab;24 class TabWidget;25 class GroupBox;26 class Layout;27 class DataPlot1D;28 }19 namespace core { 20 class Matrix; 21 } 22 namespace gui { 23 class Tab; 24 class TabWidget; 25 class GroupBox; 26 class Layout; 27 class DataPlot1D; 28 } 29 29 } 30 30 … … 105 105 */ 106 106 gui::Tab *GetPlotTab(void) const; 107 108 /*! 109 * \brief Tab widget 110 * 111 * \return tab widget 112 */ 113 gui::TabWidget *GetTabWidget(void) const; 107 114 108 115 /*! … … 119 126 * \return output matrix 120 127 */ 121 core:: cvmatrix *output;128 core::Matrix *output; 122 129 123 130 /*! -
trunk/include/FlairSensorActuator/VrpnObject.h
r50 r68 21 21 namespace flair { 22 22 namespace core { 23 class cvmatrix;23 class Matrix; 24 24 class Quaternion; 25 25 } … … 126 126 * \return Output matrix 127 127 */ 128 core:: cvmatrix *Output(void) const;128 core::Matrix *Output(void) const; 129 129 130 130 /*! … … 139 139 * \return State matrix 140 140 */ 141 core:: cvmatrix *State(void) const;141 core::Matrix *State(void) const; 142 142 143 143 /*! -
trunk/include/FlairSimulator/X4.h
r50 r68 26 26 namespace gui { 27 27 class DoubleSpinBox; 28 class SpinBox; 28 29 } 29 30 namespace actuator { … … 63 64 gui::DoubleSpinBox *f_air_vert, *f_air_lat; 64 65 gui::DoubleSpinBox *j_roll, *j_pitch, *j_yaw; 66 gui::SpinBox *motorTimeout; 65 67 }; 66 68 } // end namespace simulator -
trunk/include/FlairSimulator/X8.h
r50 r68 26 26 namespace gui { 27 27 class DoubleSpinBox; 28 class SpinBox; 28 29 } 29 30 namespace actuator { … … 65 66 gui::DoubleSpinBox *j_roll, *j_pitch, *j_yaw; 66 67 gui::DoubleSpinBox *j_r, *sigma, *S; 68 gui::SpinBox *motorTimeout; 67 69 }; 68 70 } // end namespace simulator -
trunk/include/FlairVisionFilter/HoughLines.h
r44 r68 17 17 namespace core { 18 18 class cvimage; 19 class cvmatrix;19 class Matrix; 20 20 } 21 21 namespace gui { … … 56 56 float GetOrientation(void) const; 57 57 float GetDistance(void) const; 58 core:: cvmatrix *Output(void) const;58 core::Matrix *Output(void) const; 59 59 60 60 private: … … 69 69 float distance,orientation; 70 70 CvMat* linesStorage; 71 core:: cvmatrix *output;71 core::Matrix *output; 72 72 }; 73 73 } // end namespace filter -
trunk/include/FlairVisionFilter/OpticalFlowSpeed.h
r50 r68 17 17 namespace core 18 18 { 19 class cvmatrix;19 class Matrix; 20 20 } 21 21 } … … 71 71 * Second line is speed along y axis. \n 72 72 */ 73 core:: cvmatrix *Output() const;73 core::Matrix *Output() const; 74 74 75 75 private: … … 83 83 void UpdateFrom(const core::io_data *data); 84 84 85 core:: cvmatrix *output;85 core::Matrix *output; 86 86 }; 87 87 } // end namespace filter
Note:
See TracChangeset
for help on using the changeset viewer.