- Timestamp:
- Feb 28, 2017, 4:18:13 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ReleaseNotes
r147 r148 1 1 * Actual Version: 2 2 3 - resolved https://devel.hds.utc.fr/software/flair/ticket/17 3 4 - resolved https://devel.hds.utc.fr/software/flair/ticket/16 4 5 - added lib/FlairCore/src/Semaphore.cpp -
trunk/demos/Sinus/src/MeanFilter.cpp
r16 r148 43 43 "mean filter"); // name will be used for graphs and logs 44 44 output = new cvmatrix(this, desc, floatType, name); 45 delete desc; 45 46 46 47 AddDataToLog(output); -
trunk/demos/Sinus/src/Sinus.cpp
r16 r148 42 42 desc->SetElementName(0, 0, "value"); // name will be used for graphs and logs 43 43 output = new cvmatrix((IODevice *)this, desc, floatType, name); 44 output->SetValue(0, 0, 0);44 delete desc; 45 45 46 46 AddDataToLog(output); -
trunk/lib/FlairCore/src/cvmatrix.h
r147 r148 59 59 * 60 60 * \param parent parent 61 * \param descriptor matrix description 61 * \param descriptor matrix description, it is safe to destroy it after calling this constructor 62 62 * \param type type of matrix elements 63 63 * \param name name -
trunk/lib/FlairCore/src/cvmatrix_impl.cpp
r15 r148 33 33 34 34 cvmatrix_impl::cvmatrix_impl(cvmatrix *self, 35 const cvmatrix_descriptor * descriptor,35 const cvmatrix_descriptor *inDescriptor, 36 36 flair::core::ScalarType const &_elementDataType, 37 37 int n) 38 38 : elementDataType(_elementDataType) { 39 this->descriptor = descriptor; 39 descriptor = new cvmatrix_descriptor(inDescriptor->Rows(), inDescriptor->Cols()); 40 41 for (uint32_t i = 0; i < descriptor->Rows(); i++) { 42 for (uint32_t j = 0; j < descriptor->Cols(); j++) { 43 descriptor->SetElementName(i, j, inDescriptor->ElementName(i, j)); 44 } 45 } 40 46 Init(self, n); 41 47 } -
trunk/lib/FlairCore/src/unexported/cvmatrix_impl.h
r15 r148 34 34 CvMat *mat; 35 35 flair::core::ScalarType const &elementDataType; 36 // const since if element description is modified it would be a mess in the 37 // log 38 const flair::core::cvmatrix_descriptor *descriptor; 36 flair::core::cvmatrix_descriptor *descriptor; 39 37 40 38 private: -
trunk/lib/FlairFilter/src/ButterworthLowPass_impl.cpp
r147 r148 42 42 desc->SetElementName(0, 0, "output"); 43 43 output = new cvmatrix(self, desc, floatType, name); 44 45 output->SetValue(0, 0, 0); 44 delete desc; 46 45 47 46 f = new PoleFilter(order); -
trunk/lib/FlairFilter/src/ControlLaw.cpp
r15 r148 41 41 } 42 42 output = new cvmatrix(this, desc, floatType, name); 43 delete desc; 43 44 } 44 45 -
trunk/lib/FlairFilter/src/EulerDerivative_impl.cpp
r147 r148 44 44 } 45 45 output = new cvmatrix(self, desc,init_value->GetDataType().GetElementDataType(), name); 46 delete desc; 46 47 for (int i = 0; i < init_value->Rows(); i++) { 47 48 for (int j = 0; j < init_value->Cols(); j++) { … … 54 55 desc->SetElementName(0, 0, "output"); 55 56 output = new cvmatrix(self, desc, floatType, name); 56 output->SetValue(0, 0, 0);57 delete desc; 57 58 } 58 59 -
trunk/lib/FlairFilter/src/JoyReference_impl.cpp
r15 r148 49 49 desc->SetElementName(3, 0, "trim_pitch"); 50 50 output = new cvmatrix(self, desc, floatType, name); 51 delete desc; 51 52 52 53 reglages_groupbox = new GroupBox(position, name); -
trunk/lib/FlairFilter/src/LowPassFilter_impl.cpp
r147 r148 51 51 } 52 52 } 53 delete desc; 53 54 } else { 54 55 // if NULL, assume dimension 1, and init=0 … … 56 57 desc->SetElementName(0, 0, "output"); 57 58 output = new cvmatrix(self, desc, floatType, name); 58 output->SetValue(0, 0, 0);59 delete desc; 59 60 } 60 61 -
trunk/lib/FlairFilter/src/PidThrust_impl.cpp
r15 r148 45 45 desc->SetElementName(4, 0, "p+i+d+offset"); 46 46 state = new cvmatrix(self, desc, floatType, name); 47 delete desc; 47 48 48 49 GroupBox *reglages_groupbox = new GroupBox(position, name); -
trunk/lib/FlairFilter/src/Pid_impl.cpp
r15 r148 42 42 desc->SetElementName(3, 0, "p+i+d"); 43 43 state = new cvmatrix(self, desc, floatType, name); 44 delete desc; 44 45 45 46 GroupBox *reglages_groupbox = new GroupBox(position, name); -
trunk/lib/FlairFilter/src/TrajectoryGenerator1D_impl.cpp
r15 r148 64 64 desc->SetElementName(1, 0, "vel"); 65 65 output = new cvmatrix(self, desc, floatType, name); 66 delete desc; 66 67 67 68 output->SetValue(0, 0, pos); -
trunk/lib/FlairFilter/src/TrajectoryGenerator2DCircle_impl.cpp
r15 r148 57 57 desc->SetElementName(1, 1, "vel.y"); 58 58 output = new cvmatrix(self, desc, floatType, name); 59 60 output->SetValue(0, 0, 0); 61 output->SetValue(0, 1, 0); 62 output->SetValue(1, 0, 0); 63 output->SetValue(1, 1, 0); 59 delete desc; 64 60 } 65 61 -
trunk/lib/FlairFilter/src/X4X8Multiplex_impl.cpp
r106 r148 56 56 57 57 output = new cvmatrix(self, desc, floatType); 58 58 delete desc; 59 59 self->AddDataToLog(output); 60 60 } -
trunk/lib/FlairMeta/src/MetaVrpnObject.cpp
r147 r148 56 56 } 57 57 cvmatrix *prev_value = new cvmatrix(this, desc, elementDataType, name); 58 for (int i = 0; i < prev_value->Rows(); i++) { 59 prev_value->SetValue(i, 0, 0); 60 } 58 delete desc; 61 59 62 60 pbas = new LowPassFilter(this, GetVrpnClient()->GetLayout()->NewRow(), … … 69 67 } 70 68 prev_value = new cvmatrix(this, desc, elementDataType, name); 71 for (int i = 0; i < prev_value->Rows(); i++) { 72 prev_value->SetValue(i, 0, 0); 73 } 69 delete desc; 74 70 75 71 euler = new EulerDerivative(pbas, GetVrpnClient()->GetLayout()->NewRow(), -
trunk/lib/FlairSensorActuator/src/BlCtrlV2_x4_speed.cpp
r137 r148 132 132 desc->SetElementName(3, 1, "cons arriere gauche"); 133 133 output = new cvmatrix((IODevice *)this, desc, floatType); 134 134 delete desc; 135 135 136 /* 136 137 -
trunk/lib/FlairSensorActuator/src/Bldc.cpp
r45 r148 54 54 55 55 output = new cvmatrix(this, desc, floatType); 56 delete desc; 56 57 AddDataToLog(output); 57 58 } -
trunk/lib/FlairSensorActuator/src/HokuyoUTM30Lx.cpp
r137 r148 41 41 cvmatrix_descriptor *desc = new cvmatrix_descriptor(1081, 1); 42 42 output = new cvmatrix((IODevice *)this, desc, SignedIntegerType(16)); 43 delete desc; 43 44 44 45 bufRetMut = -
trunk/lib/FlairSensorActuator/src/LaserRangeFinder.cpp
r137 r148 39 39 cvmatrix_descriptor *desc = new cvmatrix_descriptor(360, 1); 40 40 output = new cvmatrix(this, desc, floatType); 41 delete desc; 41 42 AddDataToLog(output); 42 43 Warn("output matrix is created in LaserRangeFinder and utm30lx\n"); 43 44 // station sol 44 45 main_tab = new Tab(getFrameworkManager()->GetTabWidget(), name); -
trunk/lib/FlairSensorActuator/src/RadioReceiver.cpp
r137 r148 45 45 } 46 46 output = new cvmatrix(this, desc, floatType, name); 47 delete desc; 47 48 48 49 // station sol -
trunk/lib/FlairSensorActuator/src/UsRangeFinder.cpp
r137 r148 39 39 desc->SetElementName(0, 0, name); 40 40 output = new cvmatrix(this, desc, floatType); 41 delete desc; 41 42 AddDataToLog(output); 42 43 -
trunk/lib/FlairSensorActuator/src/VrpnObject_impl.cpp
r140 r148 66 66 desc->SetElementName(6, 0, "z"); 67 67 output = new cvmatrix(self, desc, floatType); 68 delete desc; 68 69 69 70 desc = new cvmatrix_descriptor(3, 1); … … 72 73 desc->SetElementName(2, 0, "yaw"); 73 74 state = new cvmatrix(self, desc, floatType); 75 delete desc; 74 76 75 77 // ui -
trunk/lib/FlairSimulator/src/Model_impl.cpp
r146 r148 128 128 desc->SetElementName(12, 0, "vz"); 129 129 output = new cvmatrix(this, desc, floatType, "state"); 130 delete desc; 130 131 131 132 self->AddDataToLog(output); -
trunk/lib/FlairVisionFilter/src/HoughLines.cpp
r124 r148 50 50 desc->SetElementName(3,0,"line_detected"); 51 51 output=new cvmatrix(this,desc,floatType,name); 52 delete desc; 52 53 53 54 try{ -
trunk/lib/FlairVisionFilter/src/OpticalFlowSpeed.cpp
r143 r148 27 27 OpticalFlowSpeed::OpticalFlowSpeed(const IODevice* parent,string name) : IODevice(parent,name) 28 28 { 29 cvmatrix_descriptor* desc=new cvmatrix_descriptor(2,1); 30 desc->SetElementName(0,0,"vx"); 31 desc->SetElementName(1,0,"vy"); 32 output=new cvmatrix(this,desc,floatType,name); 29 cvmatrix_descriptor* desc=new cvmatrix_descriptor(2,1); 30 desc->SetElementName(0,0,"vx"); 31 desc->SetElementName(1,0,"vy"); 32 output=new cvmatrix(this,desc,floatType,name); 33 delete desc; 33 34 34 35 AddDataToLog(output); -
trunk/tools/Controller/DualShock3/src/DualShock3.cpp
r137 r148 97 97 } 98 98 axis = new cvmatrix((IODevice *)this, axisDescriptor, Int16Type); 99 delete axisDescriptor; 99 100 AddDataToLog(axis); 100 101
Note:
See TracChangeset
for help on using the changeset viewer.