Changeset 123 in flair-src
- Timestamp:
- Jan 10, 2017, 3:56:53 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 16 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/CircleFollower/simulator/src/main.cpp
r23 r123 18 18 #include <SimuImu.h> 19 19 #ifdef GL 20 #include <SimuCameraGL.h>21 20 #include <Parser.h> 22 21 #include <Man.h> … … 94 93 #ifdef GL 95 94 SimuUsGL* us_gl; 96 97 Camera *cam_av,*cam_bas;98 95 Parser *gui; 99 96 Man *man; … … 106 103 107 104 #ifdef GL 108 gui=new Parser(simu, 960,480,640,480,media_path,scene_file);105 gui=new Parser(simu,1024,768,1024,768,media_path,scene_file); 109 106 #endif 110 107 … … 119 116 #ifdef GL 120 117 us_gl=new SimuUsGL(drone,"us",0); 121 cam_bas=new SimuCameraGL(drone,"bottom camera",320,240,640,0,0); 122 cam_av=new SimuCameraGL(drone,"front camera",320,240,640,240,1); 118 123 119 124 120 man=new Man(simu,"target"); -
trunk/demos/CircleFollower/uav/CMakeLists.txt
r42 r123 5 5 SET(FLAIR_USE_FILTER TRUE) 6 6 SET(FLAIR_USE_SENSOR_ACTUATOR TRUE) 7 SET(FLAIR_USE_VISION_FILTER TRUE) 7 8 SET(FLAIR_USE_META TRUE) 8 9 SET(FLAIR_USE_VRPN TRUE) -
trunk/demos/Gps/simulator/src/main.cpp
r89 r123 19 19 #include <SimuGps.h> 20 20 #ifdef GL 21 #include <SimuCameraGL.h>22 21 #include <Parser.h> 23 22 #include <Man.h> … … 96 95 #ifdef GL 97 96 SimuUsGL *us_gl; 98 99 Camera *cam_av,*cam_bas;100 97 Parser *gui; 101 98 Man *man; … … 108 105 109 106 #ifdef GL 110 gui=new Parser(simu, 960,480,640,480,media_path,scene_file);107 gui=new Parser(simu,1024,768,1024,768,media_path,scene_file); 111 108 #endif 112 109 … … 121 118 #ifdef GL 122 119 us_gl=new SimuUsGL(drone,"us",0); 123 cam_bas=new SimuCameraGL(drone,"bottom camera",320,240,640,0,0);124 cam_av=new SimuCameraGL(drone,"front camera",320,240,640,240,1);125 126 120 man=new Man(simu,"target"); 127 121 #endif -
trunk/demos/Gps/uav/CMakeLists.txt
r122 r123 5 5 SET(FLAIR_USE_FILTER TRUE) 6 6 SET(FLAIR_USE_SENSOR_ACTUATOR TRUE) 7 SET(FLAIR_USE_VISION_FILTER TRUE) 7 8 SET(FLAIR_USE_META TRUE) 8 9 SET(FLAIR_USE_GPS TRUE) 10 9 11 10 12 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) -
trunk/demos/OpticalFlow/simulator/CMakeLists.txt
r122 r123 5 5 SET(FLAIR_USE_SIMULATOR TRUE) 6 6 SET(FLAIR_USE_SIMULATOR_GL TRUE) 7 SET(FLAIR_USE_VISION_FILTER TRUE) 7 8 8 9 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) -
trunk/demos/OpticalFlow/uav/CMakeLists.txt
r122 r123 4 4 SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) 5 5 SET(FLAIR_USE_FILTER TRUE) 6 #SET(FLAIR_USE_VISION_FILTER TRUE)7 6 SET(FLAIR_USE_SENSOR_ACTUATOR TRUE) 7 SET(FLAIR_USE_VISION_FILTER TRUE) 8 8 SET(FLAIR_USE_META TRUE) 9 9 -
trunk/demos/OpticalFlow/uav/src/main.cpp
r122 r123 18 18 #include <tclap/CmdLine.h> 19 19 #include <TargetEthController.h> 20 #include < init.h>20 #include <VisionFilter.h> 21 21 22 22 using namespace TCLAP; … … 41 41 parseOptions(argc,argv); 42 42 43 if(!InitVisionFilter("file="+dsp_file)) { 44 exit(1); 45 } 46 43 47 FrameworkManager *manager; 44 48 manager= new FrameworkManager(name); … … 46 50 manager->SetupUserInterface(xml_file); 47 51 manager->SetupLogger(log_path); 48 SetupDSP(dsp_file);49 52 50 53 Uav* drone=CreateUav(name,uav_type); … … 57 60 delete manager; 58 61 59 Close DSP();62 CloseVisionFilter(); 60 63 } 61 64 -
trunk/demos/SimpleFleet/uav/CMakeLists.txt
r42 r123 5 5 SET(FLAIR_USE_FILTER TRUE) 6 6 SET(FLAIR_USE_SENSOR_ACTUATOR TRUE) 7 SET(FLAIR_USE_VISION_FILTER TRUE) 7 8 SET(FLAIR_USE_META TRUE) 8 9 SET(FLAIR_USE_VRPN TRUE) -
trunk/demos/Skeletons/CustomReferenceAngles/CMakeLists.txt
r122 r123 5 5 SET(FLAIR_USE_FILTER TRUE) 6 6 SET(FLAIR_USE_SENSOR_ACTUATOR TRUE) 7 SET(FLAIR_USE_VISION_FILTER TRUE) 7 8 SET(FLAIR_USE_META TRUE) 8 9 -
trunk/demos/Skeletons/CustomTorques/CMakeLists.txt
r122 r123 5 5 SET(FLAIR_USE_FILTER TRUE) 6 6 SET(FLAIR_USE_SENSOR_ACTUATOR TRUE) 7 SET(FLAIR_USE_VISION_FILTER TRUE) 7 8 SET(FLAIR_USE_META TRUE) 8 9 -
trunk/lib/FlairCore/src/FrameworkManager.cpp
r122 r123 174 174 } 175 175 176 string FrameworkManager::GetLogPath(void) const { 177 return pimpl_->log_path; 178 } 176 179 void FrameworkManager::AddDeviceToLog(IODevice *device) { 177 180 pimpl_->AddDeviceToLog(device); -
trunk/lib/FlairCore/src/FrameworkManager.h
r122 r123 109 109 */ 110 110 void SetupLogger(std::string log_path); 111 112 /*! 113 * \brief Get log path 114 * 115 * get the path defined by SetupLogger 116 * 117 * \return log path 118 */ 119 std::string GetLogPath(void) const; 111 120 112 121 /*! -
trunk/lib/FlairSensorActuator/CMakeLists.txt
r45 r123 23 23 ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported 24 24 ${CMAKE_CURRENT_SOURCE_DIR}/../FlairCore/src 25 ${CMAKE_CURRENT_SOURCE_DIR}/../FlairVisionFilter/src 25 26 ${CMAKE_SYSROOT}/usr/include/opencv 26 27 ${CMAKE_SYSROOT}/usr/include/vrpn 27 # $ENV{IGEP_ROOT}/uav_dev/include28 28 ) 29 29 -
trunk/lib/FlairSensorActuator/src/Camera.cpp
r122 r123 24 24 #include <DataPlot1D.h> 25 25 #include <Picture.h> 26 #include <VisionFilter.h> 26 27 #include <highgui.h> 27 28 #include <fstream> … … 118 119 case LogFormat::JPG: 119 120 IplImage *img=((cvimage*)data)->img; 120 //dspSaveToJpeg(img,"toto"); 121 string filename=getFrameworkManager()->GetLogPath()+"/"+ObjectName()+"_"+std::to_string(data->DataTime())+".jpg"; 122 saveToJpeg(img,filename); 121 123 break; 122 124 } -
trunk/lib/FlairVisionFilter/CMakeLists.txt
r122 r123 21 21 ${LIBXML2_INCLUDE_DIR} 22 22 ${CMAKE_CURRENT_SOURCE_DIR}/src 23 ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported 23 24 $ENV{FLAIR_ROOT}/flair-src/lib/FlairCore/src 24 25 ${CMAKE_SYSROOT}/usr/include/opencv -
trunk/lib/FlairVisionFilter/src/VisionFilter.cpp
r122 r123 1 #include "init.h" 1 #include "VisionFilter.h" 2 #include "compile_info.h" 3 #include <highgui.h> 2 4 5 static void constructor() __attribute__((constructor)); 3 6 4 void SetupDSP(std::string file,int globalTimeoutMs) {5 7 void constructor() { 8 compile_info("FlairVisionFilter"); 6 9 } 7 10 8 void CloseDSP(void) { 11 void saveToJpeg(IplImage* src_img,std::string filename,unsigned char compression_level) { 12 if(!cvSaveImage(filename.c_str(),src_img)) printf("Could not save.\n"); 13 } 14 15 bool InitVisionFilter(std::string args) { 16 printf("Using default vision lib filter, all functions are not ready!\n"); 17 return true; 18 } 19 20 void CloseVisionFilter(void) { 9 21 10 22 } -
trunk/lib/FlairVisionFilter/src/VisionFilter.h
r122 r123 1 1 #include <string> 2 #include <cxtypes.h> 2 3 3 4 /*! 4 * \brief DSP setup5 * \brief InitVisionFilter 5 6 * 6 * Setup DSP executable file. \n 7 * If this method is not called, no DSP processing will be available. \n 8 * 9 * \param file DSP executable file 10 * \param globalTimeoutMs timeout for all DSP functions, in ms (timeout is only 11 * used to display a warning. -1 to disable timeout 7 * \return true 12 8 */ 13 void SetupDSP(std::string file,int globalTimeoutMs=-1);14 9 10 bool InitVisionFilter(std::string args); 15 11 16 void CloseDSP(void); 12 void CloseVisionFilter(void); 13 14 void saveToJpeg(IplImage* src_img,std::string filename,unsigned char compression_level=95); -
trunk/lib/FlairVisionFilter/src/unexported/compile_info.h
r122 r123 5 5 6 6 #define USER "gsanahuj@gsanahuj-Latitude-E6420" 7 #define DATE " vendredi 6 janvier 2017, 12:43:09(UTC+0100)"7 #define DATE "mardi 10 janvier 2017, 15:56:33 (UTC+0100)" 8 8 #define GCC_REV "4.9.1" 9 9 #define GCC_PATH "/opt/robomap3/1.7.3/armv7a-neon/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc" 10 10 #define SVN_PATH "/home/gsanahuj/HDS/igep/flair-src_svn/trunk/lib/FlairVisionFilter" 11 #define SVN_REV " Ajout, copie ou déplacement local non propagé"11 #define SVN_REV "122M" 12 12 13 13 inline void compile_info(std::string name) {
Note:
See TracChangeset
for help on using the changeset viewer.