- Timestamp:
- Feb 3, 2015, 3:53:11 PM (10 years ago)
- Location:
- trunk/StereoVisionDisparity
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StereoVisionDisparity/CameraObstacleGridComponent.cpp
r70 r75 27 27 // Includes, qt. 28 28 #include <QMetaType> 29 #include <QDateTime> 29 30 30 31 #include "Pacpus/kernel/ComponentFactory.h" … … 195 196 } 196 197 198 199 QString tmp = QDateTime::currentDateTimeUtc().toString("yyyy_MM_dd-hh_mm_ss") + ".txt"; 200 saveFile_.setFileName(tmp); 201 if (!saveFile_.open(QIODevice::WriteOnly | QIODevice::Text)) 202 return; 203 flux_.setDevice(&saveFile_); 204 flux_.setCodec("UTF-8"); 205 197 206 // Run thread 198 207 THREAD_ALIVE = true; … … 241 250 this->udp_con = NULL;*/ 242 251 } 252 253 saveFile_.close(); 243 254 244 255 LOG_INFO("stopped component '" << name() << "'"); … … 701 712 702 713 if (dist_min < maxDistToBrake) 703 emit smallestDistance(); 714 { 715 emit smallestDistance(); 716 cout << "TIME TO BRAKE: " << dist_min << " m at " << road_time() << endl; 717 flux_ << "TIME TO BRAKE: " << dist_min << " m at " << road_time() << endl; 718 } 704 719 705 720 //----------------------------------------------------------------------------- -
trunk/StereoVisionDisparity/CameraObstacleGridComponent.h
r70 r75 32 32 #include <QThread> 33 33 #include <QMutex> 34 #include <QFile.h> 35 #include <QTextStream> 34 36 35 37 namespace pacpus { … … 197 199 198 200 double maxDistToBrake; 201 QFile saveFile_; 202 QTextStream flux_; 199 203 200 204 Q_SIGNALS:
Note:
See TracChangeset
for help on using the changeset viewer.