camera drivers experimental (swissranger_camera)

asked 2016-10-09 10:27:15 -0500

Abbas gravatar image

Hi,

I am following this tutorial (Download and install swissranger_camera) to install and work with swissranger camera (sr4500). When I used this code (svn co https://code.ros.org/svn/ros-pkg/bran... ) , I got an error because www.code.ros.org does not exist to check out and download the drivers. So, I search on the Internet and foundnd this page ( https://github.com/OpenPTrack/open_pt... ) and I checked it out by using svn and I did not get any error, but when I used this cod (rosmake swissranger_camera), I got this error :

([rosrun] Couldn't find executable named swissranger_camera below /home/abbas/catkin_ws/src/swissranger_camera [rosrun] Found the following, but they're either not files, [rosrun] or not executable: [rosrun] /home/abbas/catkin_ws/src/swissranger_camera [rosrun] /home/abbas/catkin_ws/src/swissranger_camera/src/swissranger_camera [rosrun] /home/abbas/catkin_ws/src/swissranger_camera/include/swissranger_camera ).

This is also my cmakelists.txt in the swiss_ranger folder in my catkin workspace/src:

cmake_minimum_required(VERSION 2.8.3) project(swissranger_camera) set(CMAKE_BUILD_TYPE RelWithDebInfo) IF(EXISTS "/usr/lib/libmesasr.so") set(SWISSRANGER_ENABLED 1) ELSE() set(SWISSRANGER_ENABLED 0) ENDIF() LIST(APPEND CMAKE_CXXFLAGS "-DSWISSRANGER_ENABLED") find_package(catkin REQUIRED COMPONENTS cmake_modules roscpp tf camera_info_manager image_transport dynamic_reconfigure driver_base sensor_msgs cv_bridge)

find_package(OpenCV REQUIRED) include_directories(${OpenCV_INCLUDE_DIRS}) link_directories(${OpenCV_LIB_DIR}) add_definitions(${OpenCV_DEFINITIONS})

find_package(Eigen REQUIRED) include_directories(${Eigen_INCLUDE_DIRS} include ${catkin_INCLUDE_DIRS})

find_package(PCL 1.7 REQUIRED) include_directories(BEFORE ${PCL_INCLUDE_DIRS}) link_directories(${PCL_LIBRARY_DIRS}) add_definitions(${PCL_DEFINITIONS}) MESSAGE("PCL_INCLUDE_DIRS\n${PCL_INCLUDE_DIRS}\n") MESSAGE("PCL_LIBRARY_DIRS\n${PCL_LIBRARY_DIRS}\n") MESSAGE("PCL_DEFINITIONS\n${PCL_DEFINITIONS}\n") MESSAGE("PCL_COMMON_LIBRARIES\n${PCL_COMMON_LIBRARIES}\n") if (NOT PCL_FOUND) MESSAGE(FATAL_ERROR "PCL not found.\n") endif (NOT PCL_FOUND)

generate_dynamic_reconfigure_options(cfg/SwissRanger.cfg)

include_directories(include ${catkin_INCLUDE_DIRS} cfg/cpp)

catkin_package( INCLUDE_DIRS include LIBRARIES swissranger_utility CATKIN_DEPENDS roscpp tf camera_info_manager image_transport dynamic_reconfigure driver_base ) add_library(swissranger_utility src/swissranger_camera/utility.cpp include/swissranger_camera/utility.h) target_link_libraries(swissranger_utility ${catkin_LIBRARIES})

IF(SWISSRANGER_ENABLED) add_executable(${PROJECT_NAME} src/sr.cpp src/dev_sr.cpp include/sr.h) add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_gencfg) target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} mesasr)

 add_library(swissranger_utility src/swissranger_camera/utility.cpp include/swissranger_camera/utility.h)
 target_link_libraries(swissranger_utility ${catkin_LIBRARIES})

add_executable(image_publisher_sr apps/main_image_publisher_sr.cpp)
target_link_libraries(image_publisher_sr swissranger_utility ${catkin_LIBRARIES})

ENDIF(SWISSRANGER_ENABLED)

How can I solve the problem? Thanks, Abbas

edit retag flag offensive close merge delete

Comments

That package does not look like it's actively maintained.

joq gravatar image joq  ( 2016-10-09 12:52:42 -0500 )edit

Hi Sir, Thank you for your help. By the way, you mean by downloading the new file, I can not install it anymore? Thank you, Abbas

Abbas gravatar image Abbas  ( 2016-10-09 17:12:36 -0500 )edit

Does any website exist to download the drivers for swissranger_camera (by using "svn check out" command)? Thanks

Abbas gravatar image Abbas  ( 2016-10-09 17:20:41 -0500 )edit