From bc562a647984d377f5d98689dc7132ac8c18389d Mon Sep 17 00:00:00 2001 From: asantamaria <asantamaria@iri.upc.edu> Date: Mon, 12 Dec 2016 21:29:07 +0100 Subject: [PATCH] trying to fix segfault ony with ROS --- CMakeLists.txt | 4 +--- src/mvbluefox3_camera_alg.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fba2e9..14d4895 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,8 +84,6 @@ include_directories(${mvbluefox3_INCLUDE_DIR}) include_directories(${mvIMPACT_INCLUDE_DIR}) # include_directories(${<dependency>_INCLUDE_DIR}) -MESSAGE(STATUS ${mvbluefox3_INCLUDE_DIR}) - ## Declare a cpp library # add_library(${PROJECT_NAME} <list of source files>) @@ -99,7 +97,7 @@ target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES}) target_link_libraries(${PROJECT_NAME} ${mvbluefox3_LIBRARY}) target_link_libraries(${PROJECT_NAME} ${mvIMPACT_LIBRARY}) # target_link_libraries(${PROJECT_NAME} ${<dependency>_LIBRARY}) - + # ******************************************************************** # Add message headers dependencies # ******************************************************************** diff --git a/src/mvbluefox3_camera_alg.cpp b/src/mvbluefox3_camera_alg.cpp index 8e4b078..66dce97 100644 --- a/src/mvbluefox3_camera_alg.cpp +++ b/src/mvbluefox3_camera_alg.cpp @@ -28,7 +28,7 @@ void Mvbluefox3CameraAlgorithm::StartDriver(const std::string &serial) { try { - this->cam_ptr_ = new CMvbluefox3::CMvbluefox3("F0300141"); + this->cam_ptr_ = new CMvbluefox3::CMvbluefox3(serial); }catch (CMvbluefox3::CmvBlueFOX3Exception& e) { std::cout << e.what() << std::endl; -- GitLab