FLIR / flir_adk_ethernet

ROS ethernet camera driver, targeting BlackFly and Boson
11 stars 18 forks source link

problem while building the driver. #4

Open SatyeshAwasthi opened 4 years ago

SatyeshAwasthi commented 4 years ago

Hi, I've installed this driver properly once before but then I had to reinstall my ubuntu and now I'm getting this error of missing event while building the driver.Please do reply as to what I should do. Also I'm using 2x(Grasshopper3 GigE Model: GS3-PGE-23S6M-C: 2.3 MP, 48 FPS, Sony IMX174, Mono) camera, does this driver support it? Following is the error:

[ 82%] Building CXX object flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/src/nodelets/BaseCameraController.cpp.o In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.cpp:7:0: /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.h:30:43: error: ‘Spinnaker::Event’ has not been declared virtual void RegisterEvent(Spinnaker::Event &e); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.h:31:45: error: ‘Spinnaker::Event’ has not been declared virtual void UnregisterEvent(Spinnaker::Event &e); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.cpp:37:46: error: variable or field ‘RegisterEvent’ declared void void CameraWrapper::RegisterEvent(Spinnaker::Event &e) { ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.cpp:37:35: error: ‘Event’ is not a member of ‘Spinnaker’ void CameraWrapper::RegisterEvent(Spinnaker::Event &e) { ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.cpp:37:53: error: ‘e’ was not declared in this scope void CameraWrapper::RegisterEvent(Spinnaker::Event &e) { ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.cpp:41:48: error: variable or field ‘UnregisterEvent’ declared void void CameraWrapper::UnregisterEvent(Spinnaker::Event &e) { ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.cpp:41:37: error: ‘Event’ is not a member of ‘Spinnaker’ void CameraWrapper::UnregisterEvent(Spinnaker::Event &e) { ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.cpp:41:55: error: ‘e’ was not declared in this scope void CameraWrapper::UnregisterEvent(Spinnaker::Event &e) { ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraListWrapper.h:10:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/SystemWrapper.h:10, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/SystemWrapper.cpp:7: /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.h:30:43: error: ‘Spinnaker::Event’ has not been declared virtual void RegisterEvent(Spinnaker::Event &e); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.h:31:45: error: ‘Spinnaker::Event’ has not been declared virtual void UnregisterEvent(Spinnaker::Event &e); ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraListWrapper.h:10:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraListWrapper.cpp:7: /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.h:30:43: error: ‘Spinnaker::Event’ has not been declared virtual void RegisterEvent(Spinnaker::Event &e); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/spinnaker_wrappers/CameraWrapper.h:31:45: error: ‘Spinnaker::Event’ has not been declared virtual void UnregisterEvent(Spinnaker::Event &e); ^ flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/build.make:326: recipe for target 'flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/spinnaker_wrappers/CameraWrapper.cpp.o' failed make[2]: [flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/spinnaker_wrappers/CameraWrapper.cpp.o] Error 1 make[2]: Waiting for unfinished jobs.... flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/build.make:302: recipe for target 'flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/spinnaker_wrappers/SystemWrapper.cpp.o' failed make[2]: [flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/spinnaker_wrappers/SystemWrapper.cpp.o] Error 1 flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/build.make:278: recipe for target 'flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/spinnaker_wrappers/CameraListWrapper.cpp.o' failed make[2]: [flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/spinnaker_wrappers/CameraListWrapper.cpp.o] Error 1 In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:23:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:30:43: error: ‘Spinnaker::Event’ has not been declared virtual void RegisterEvent(Spinnaker::Event &e); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:31:45: error: ‘Spinnaker::Event’ has not been declared virtual void UnregisterEvent(Spinnaker::Event &e); ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7:0: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:45: error: expected class-name before ‘{’ token class ImageEventHandler : public ImageEvent { ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:55:10: error: ‘void flir_adk_ethernet::ImageEventHandler::OnImageEvent(Spinnaker::ImagePtr)’ marked ‘override’, but does not override void OnImageEvent(ImagePtr image) override; ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:11:1: error: reference to ‘ImageEventHandler’ is ambiguous ImageEventHandler::ImageEventHandler(std::shared_ptr pCam, ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7:0: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:7: note: candidates are: class flir_adk_ethernet::ImageEventHandler class ImageEventHandler : public ImageEvent { ^ In file included from /usr/include/spinnaker/Spinnaker.h:84:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:20, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7: /usr/include/spinnaker/ImageEventHandler.h:41:25: note: class Spinnaker::ImageEventHandler class SPINNAKER_API ImageEventHandler : public IImageEventHandler ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:29:1: error: reference to ‘ImageEventHandler’ is ambiguous ImageEventHandler::ImageEventHandler(const ImageEventHandler& handler) : ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7:0: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:7: note: candidates are: class flir_adk_ethernet::ImageEventHandler class ImageEventHandler : public ImageEvent { ^ In file included from /usr/include/spinnaker/Spinnaker.h:84:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:20, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7: /usr/include/spinnaker/ImageEventHandler.h:41:25: note: class Spinnaker::ImageEventHandler class SPINNAKER_API ImageEventHandler : public IImageEventHandler ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:35:1: error: reference to ‘ImageEventHandler’ is ambiguous ImageEventHandler::~ImageEventHandler() {} ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7:0: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:7: note: candidates are: class flir_adk_ethernet::ImageEventHandler class ImageEventHandler : public ImageEvent { ^ In file included from /usr/include/spinnaker/Spinnaker.h:84:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:20, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7: /usr/include/spinnaker/ImageEventHandler.h:41:25: note: class Spinnaker::ImageEventHandler class SPINNAKER_API ImageEventHandler : public IImageEventHandler ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:38:6: error: reference to ‘ImageEventHandler’ is ambiguous void ImageEventHandler::Init() { ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7:0: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:7: note: candidates are: class flir_adk_ethernet::ImageEventHandler class ImageEventHandler : public ImageEvent { ^ In file included from /usr/include/spinnaker/Spinnaker.h:84:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:20, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7: /usr/include/spinnaker/ImageEventHandler.h:41:25: note: class Spinnaker::ImageEventHandler class SPINNAKER_API ImageEventHandler : public IImageEventHandler ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp: In function ‘void Init()’: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:41:11: error: ‘m_resultImage’ was not declared in this scope while(m_resultImage == nullptr && ros::ok()) {} ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp: At global scope: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:44:11: error: reference to ‘ImageEventHandler’ is ambiguous ImageInfo ImageEventHandler::GetImageInfo() { ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7:0: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:7: note: candidates are: class flir_adk_ethernet::ImageEventHandler class ImageEventHandler : public ImageEvent { ^ In file included from /usr/include/spinnaker/Spinnaker.h:84:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:20, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7: /usr/include/spinnaker/ImageEventHandler.h:41:25: note: class Spinnaker::ImageEventHandler class SPINNAKER_API ImageEventHandler : public IImageEventHandler ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp: In function ‘flir_adk_ethernet::ImageInfo GetImageInfo()’: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:45:23: error: ‘m_resultImage’ was not declared in this scope return ImageInfo {m_resultImage->GetWidth(), m_resultImage->GetHeight(), ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp: At global scope: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:50:6: error: reference to ‘ImageEventHandler’ is ambiguous void ImageEventHandler::OnImageEvent(ImagePtr image) { ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7:0: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:7: note: candidates are: class flir_adk_ethernet::ImageEventHandler class ImageEventHandler : public ImageEvent { ^ In file included from /usr/include/spinnaker/Spinnaker.h:84:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:20, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7: /usr/include/spinnaker/ImageEventHandler.h:41:25: note: class Spinnaker::ImageEventHandler class SPINNAKER_API ImageEventHandler : public IImageEventHandler ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp: In function ‘void OnImageEvent(Spinnaker::ImagePtr)’: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:55:5: error: ‘m_mutex’ was not declared in this scope m_mutex.lock(); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:56:5: error: ‘m_resultImage’ was not declared in this scope m_resultImage = image->Convert(_format, HQ_LINEAR); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:56:36: error: ‘_format’ was not declared in this scope m_resultImage = image->Convert(_format, HQ_LINEAR); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:57:5: error: ‘m_lastTimeStamp’ was not declared in this scope m_lastTimeStamp = image->GetTimeStamp(); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp: At global scope: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:72:7: error: reference to ‘ImageEventHandler’ is ambiguous void ImageEventHandler::GetImageData() { ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7:0: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:7: note: candidates are: class flir_adk_ethernet::ImageEventHandler class ImageEventHandler : public ImageEvent { ^ In file included from /usr/include/spinnaker/Spinnaker.h:84:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:20, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7: /usr/include/spinnaker/ImageEventHandler.h:41:25: note: class Spinnaker::ImageEventHandler class SPINNAKER_API ImageEventHandler : public IImageEventHandler ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp: In function ‘void GetImageData()’: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:73:8: error: ‘m_resultImage’ was not declared in this scope if(m_resultImage == nullptr) { ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:77:5: error: ‘m_mutex’ was not declared in this scope m_mutex.lock(); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:79:12: error: ‘m_resultImage’ was not declared in this scope return m_resultImage->GetData(); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp: At global scope: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:82:10: error: reference to ‘ImageEventHandler’ is ambiguous uint64_t ImageEventHandler::GetCaptureTime() { ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7:0: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:7: note: candidates are: class flir_adk_ethernet::ImageEventHandler class ImageEventHandler : public ImageEvent { ^ In file included from /usr/include/spinnaker/Spinnaker.h:84:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:20, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7: /usr/include/spinnaker/ImageEventHandler.h:41:25: note: class Spinnaker::ImageEventHandler class SPINNAKER_API ImageEventHandler : public IImageEventHandler ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp: In function ‘uint64_t GetCaptureTime()’: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:83:12: error: ‘m_lastTimeStamp’ was not declared in this scope return m_lastTimeStamp; ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp: At global scope: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:86:6: error: reference to ‘ImageEventHandler’ is ambiguous void ImageEventHandler::setPixelFormat(PixelFormatEnums format) { ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7:0: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:7: note: candidates are: class flir_adk_ethernet::ImageEventHandler class ImageEventHandler : public ImageEvent { ^ In file included from /usr/include/spinnaker/Spinnaker.h:84:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:20, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:7: /usr/include/spinnaker/ImageEventHandler.h:41:25: note: class Spinnaker::ImageEventHandler class SPINNAKER_API ImageEventHandler : public IImageEventHandler ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp: In function ‘void setPixelFormat(Spinnaker::PixelFormatEnums)’: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:87:5: error: ‘m_mutex’ was not declared in this scope m_mutex.lock(); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/ImageEventHandler.cpp:88:5: error: ‘_format’ was not declared in this scope _format = format; ^ flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/build.make:206: recipe for target 'flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/src/flir_adk_ethernet/ImageEventHandler.cpp.o' failed make[2]: *** [flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/src/flir_adk_ethernet/ImageEventHandler.cpp.o] Error 1 In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:23:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/EthernetCamera.h:42, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp:8: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:30:43: error: ‘Spinnaker::Event’ has not been declared virtual void RegisterEvent(Spinnaker::Event &e); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:31:45: error: ‘Spinnaker::Event’ has not been declared virtual void UnregisterEvent(Spinnaker::Event &e); ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/EthernetCamera.h:42:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp:8: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:45: error: expected class-name before ‘{’ token class ImageEventHandler : public ImageEvent { ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:55:10: error: ‘void flir_adk_ethernet::ImageEventHandler::OnImageEvent(Spinnaker::ImagePtr)’ marked ‘override’, but does not override void OnImageEvent(ImagePtr image) override; ^ In file included from /opt/ros/kinetic/include/ros/ros.h:40:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/EthernetCamera.h:29, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp:8: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp: In member function ‘bool flir_adk_ethernet::EthernetCamera::setROI(int, int, int, int)’: /opt/ros/kinetic/include/ros/console.h:346:176: warning: format not a string literal and no format arguments [-Wformat-security] ::ros::console::print(filter, rosconsole_define_locationloc.logger_, rosconsole_define_locationloc.level_, FILE, LINE, ROSCONSOLE_FUNCTION, VA_ARGS) ^ /opt/ros/kinetic/include/ros/console.h:349:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’ ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(0, VA_ARGS) ^ /opt/ros/kinetic/include/ros/console.h:379:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’ ROSCONSOLE_PRINT_AT_LOCATION(VA_ARGS); \ ^ /opt/ros/kinetic/include/ros/console.h:561:35: note: in expansion of macro ‘ROS_LOG_COND’

define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)

^ /opt/ros/kinetic/include/rosconsole/macros_generated.h:214:24: note: in expansion of macro ‘ROS_LOG’

define ROS_ERROR(...) ROS_LOG(::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)

^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp:243:9: note: in expansion of macro ‘ROS_ERROR’ ROS_ERROR(e.what()); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp: In member function ‘void flir_adk_ethernet::EthernetCamera::setCameraEvents()’: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp:260:40: error: no matching function for call to ‘flir_adk_ethernet::CameraWrapper::RegisterEvent(flir_adk_ethernet::ImageEventHandler&)’ _pCam->RegisterEvent(_imageHandler); ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:23:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/EthernetCamera.h:42, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp:8: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:30:18: note: candidate: virtual void flir_adk_ethernet::CameraWrapper::RegisterEvent(int&) virtual void RegisterEvent(Spinnaker::Event &e); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:30:18: note: no known conversion for argument 1 from ‘flir_adk_ethernet::ImageEventHandler’ to ‘int&’ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp: In member function ‘void flir_adk_ethernet::EthernetCamera::unsetCameraEvents()’: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp:324:46: error: no matching function for call to ‘flir_adk_ethernet::CameraWrapper::UnregisterEvent(flir_adk_ethernet::ImageEventHandler&)’ _pCam->UnregisterEvent(_imageHandler); ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:23:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/EthernetCamera.h:42, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp:8: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:31:18: note: candidate: virtual void flir_adk_ethernet::CameraWrapper::UnregisterEvent(int&) virtual void UnregisterEvent(Spinnaker::Event &e); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:31:18: note: no known conversion for argument 1 from ‘flir_adk_ethernet::ImageEventHandler’ to ‘int&’ In file included from /opt/ros/kinetic/include/ros/ros.h:40:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/EthernetCamera.h:29, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp:8: /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp: In member function ‘bool flir_adk_ethernet::EthernetCamera::setNodeValue(std::cxx11::string, std::cxx11::string)’: /opt/ros/kinetic/include/ros/console.h:346:176: warning: format not a string literal and no format arguments [-Wformat-security] ::ros::console::print(filter, rosconsole_define_locationloc.logger_, rosconsole_define_locationloc.level_, FILE, LINE, ROSCONSOLE_FUNCTION, VA_ARGS) ^ /opt/ros/kinetic/include/ros/console.h:349:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’ ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(0, VA_ARGS) ^ /opt/ros/kinetic/include/ros/console.h:379:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’ ROSCONSOLE_PRINT_AT_LOCATION(VA_ARGS); \ ^ /opt/ros/kinetic/include/ros/console.h:561:35: note: in expansion of macro ‘ROS_LOG_COND’

define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)

^ /opt/ros/kinetic/include/rosconsole/macros_generated.h:214:24: note: in expansion of macro ‘ROS_LOG’

define ROS_ERROR(...) ROS_LOG(::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)

^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp:454:9: note: in expansion of macro ‘ROS_ERROR’ ROS_ERROR(e.what()); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp: In member function ‘void flir_adk_ethernet::EthernetCamera::stopCapture()’: /opt/ros/kinetic/include/ros/console.h:346:176: warning: format not a string literal and no format arguments [-Wformat-security] ::ros::console::print(filter, rosconsole_define_locationloc.logger_, rosconsole_define_locationloc.level_, FILE, LINE, ROSCONSOLE_FUNCTION, VA_ARGS) ^ /opt/ros/kinetic/include/ros/console.h:349:5: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER’ ROSCONSOLE_PRINT_AT_LOCATION_WITH_FILTER(0, VA_ARGS) ^ /opt/ros/kinetic/include/ros/console.h:379:7: note: in expansion of macro ‘ROSCONSOLE_PRINT_AT_LOCATION’ ROSCONSOLE_PRINT_AT_LOCATION(VA_ARGS); \ ^ /opt/ros/kinetic/include/ros/console.h:561:35: note: in expansion of macro ‘ROS_LOG_COND’

define ROS_LOG(level, name, ...) ROS_LOG_COND(true, level, name, __VA_ARGS__)

^ /opt/ros/kinetic/include/rosconsole/macros_generated.h:214:24: note: in expansion of macro ‘ROS_LOG’

define ROS_ERROR(...) ROS_LOG(::ros::console::levels::Error, ROSCONSOLE_DEFAULT_NAME, __VA_ARGS__)

^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/flir_adk_ethernet/EthernetCamera.cpp:512:9: note: in expansion of macro ‘ROS_ERROR’ ROS_ERROR(e.what()); ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:23:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/EthernetCamera.h:42, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/BaseCameraController.h:47, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/nodelets/BaseCameraController.cpp:9: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:30:43: error: ‘Spinnaker::Event’ has not been declared virtual void RegisterEvent(Spinnaker::Event &e); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:31:45: error: ‘Spinnaker::Event’ has not been declared virtual void UnregisterEvent(Spinnaker::Event &e); ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/EthernetCamera.h:42:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/BaseCameraController.h:47, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/nodelets/BaseCameraController.cpp:9: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:45: error: expected class-name before ‘{’ token class ImageEventHandler : public ImageEvent { ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:55:10: error: ‘void flir_adk_ethernet::ImageEventHandler::OnImageEvent(Spinnaker::ImagePtr)’ marked ‘override’, but does not override void OnImageEvent(ImagePtr image) override; ^ flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/build.make:182: recipe for target 'flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/src/flir_adk_ethernet/EthernetCamera.cpp.o' failed make[2]: [flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/src/flir_adk_ethernet/EthernetCamera.cpp.o] Error 1 In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:23:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/EthernetCamera.h:42, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/BaseCameraController.h:47, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/CameraController.h:29, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/nodelets/CameraController.cpp:9: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:30:43: error: ‘Spinnaker::Event’ has not been declared virtual void RegisterEvent(Spinnaker::Event &e); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:31:45: error: ‘Spinnaker::Event’ has not been declared virtual void UnregisterEvent(Spinnaker::Event &e); ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/EthernetCamera.h:42:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/BaseCameraController.h:47, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/CameraController.h:29, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/nodelets/CameraController.cpp:9: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:45: error: expected class-name before ‘{’ token class ImageEventHandler : public ImageEvent { ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:55:10: error: ‘void flir_adk_ethernet::ImageEventHandler::OnImageEvent(Spinnaker::ImagePtr)’ marked ‘override’, but does not override void OnImageEvent(ImagePtr image) override; ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:23:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/EthernetCamera.h:42, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/BaseCameraController.h:47, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/SyncCameraController.h:17, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/nodelets/SyncCameraController.cpp:8: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:30:43: error: ‘Spinnaker::Event’ has not been declared virtual void RegisterEvent(Spinnaker::Event &e); ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/../spinnaker_wrappers/CameraWrapper.h:31:45: error: ‘Spinnaker::Event’ has not been declared virtual void UnregisterEvent(Spinnaker::Event &e); ^ In file included from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/EthernetCamera.h:42:0, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/BaseCameraController.h:47, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/SyncCameraController.h:17, from /home/satyesh/catkin_ws/src/flir_adk_ethernet/src/nodelets/SyncCameraController.cpp:8: /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:38:45: error: expected class-name before ‘{’ token class ImageEventHandler : public ImageEvent { ^ /home/satyesh/catkin_ws/src/flir_adk_ethernet/include/flir_adk_ethernet/ImageEventHandler.h:55:10: error: ‘void flir_adk_ethernet::ImageEventHandler::OnImageEvent(Spinnaker::ImagePtr)’ marked ‘override’, but does not override void OnImageEvent(ImagePtr image) override; ^ flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/build.make:62: recipe for target 'flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/src/nodelets/BaseCameraController.cpp.o' failed make[2]: [flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/src/nodelets/BaseCameraController.cpp.o] Error 1 flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/build.make:86: recipe for target 'flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/src/nodelets/CameraController.cpp.o' failed make[2]: [flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/src/nodelets/CameraController.cpp.o] Error 1 flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/build.make:110: recipe for target 'flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/src/nodelets/SyncCameraController.cpp.o' failed make[2]: [flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/src/nodelets/SyncCameraController.cpp.o] Error 1 CMakeFiles/Makefile2:771: recipe for target 'flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/all' failed make[1]: [flir_adk_ethernet/CMakeFiles/BosonCameraEthernet.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: [all] Error 2 Invoking "make -j8 -l8" failed

nevangeliouNYUAD commented 4 years ago

You are using Spinnaker SDK version 2.0. Downgrade to SDK version <=1.29.

ChienLiu commented 4 years ago

HI, I want to ask where can I get SDK ver.1.29 for linux? I found the download source on FLIR websites is only 2.0.0

nevangeliouNYUAD commented 4 years ago

Some older versions are hosted here:

https://flir.app.boxcn.net/v/SpinnakerSDK

zinuok commented 4 years ago

@nevangeliouNYUAD I can't found any older versions at the link. Where can I found that?

ChienLiu commented 4 years ago

@zinuok copy the link " https://flir.app.boxcn.net/v/SpinnakerSDK " (only text) and paste to browser. Do not click the link directly, or you can click my link ^^^^^^^^