Robotics StackExchange | Archived questions

camera drivers experimental (swissranger_camera)

Hi,

I am following this tutorial (Download and install swissrangercamera) to install and work with swissranger camera (sr4500). When I used this code (svn co https://code.ros.org/svn/ros-pkg/branches/trunkcturtle/stacks/cameradriversexperimental ) , 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_ptrack.git) 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 swissrangercamera below /home/abbas/catkinws/src/swissrangercamera [rosrun] Found the following, but they're either not files, [rosrun] or not executable: [rosrun] /home/abbas/catkinws/src/swissrangercamera [rosrun] /home/abbas/catkinws/src/swissrangercamera/src/swissrangercamera [rosrun] /home/abbas/catkinws/src/swissrangercamera/include/swissranger_camera ).

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

cmakeminimumrequired(VERSION 2.8.3) project(swissrangercamera) set(CMAKEBUILDTYPE RelWithDebInfo) IF(EXISTS "/usr/lib/libmesasr.so") set(SWISSRANGERENABLED 1) ELSE() set(SWISSRANGERENABLED 0) ENDIF() LIST(APPEND CMAKECXXFLAGS "-DSWISSRANGERENABLED") findpackage(catkin REQUIRED COMPONENTS cmakemodules roscpp tf camerainfomanager imagetransport dynamicreconfigure driverbase sensormsgs cvbridge)

findpackage(OpenCV REQUIRED) includedirectories(${OpenCVINCLUDEDIRS}) linkdirectories(${OpenCVLIBDIR}) adddefinitions(${OpenCV_DEFINITIONS})

findpackage(Eigen REQUIRED) includedirectories(${EigenINCLUDEDIRS} include ${catkinINCLUDEDIRS})

findpackage(PCL 1.7 REQUIRED) includedirectories(BEFORE ${PCLINCLUDEDIRS}) linkdirectories(${PCLLIBRARYDIRS}) adddefinitions(${PCLDEFINITIONS}) MESSAGE("PCLINCLUDEDIRS\n${PCLINCLUDEDIRS}\n") MESSAGE("PCLLIBRARYDIRS\n${PCLLIBRARYDIRS}\n") MESSAGE("PCLDEFINITIONS\n${PCLDEFINITIONS}\n") MESSAGE("PCLCOMMONLIBRARIES\n${PCLCOMMONLIBRARIES}\n") if (NOT PCLFOUND) MESSAGE(FATALERROR "PCL not found.\n") endif (NOT PCLFOUND)

generatedynamicreconfigure_options(cfg/SwissRanger.cfg)

includedirectories(include ${catkinINCLUDE_DIRS} cfg/cpp)

catkinpackage( INCLUDEDIRS include LIBRARIES swissrangerutility CATKINDEPENDS roscpp tf camerainfomanager imagetransport dynamicreconfigure driverbase ) addlibrary(swissrangerutility src/swissrangercamera/utility.cpp include/swissrangercamera/utility.h) targetlinklibraries(swissrangerutility ${catkin_LIBRARIES})

IF(SWISSRANGERENABLED) addexecutable(${PROJECTNAME} src/sr.cpp src/devsr.cpp include/sr.h) adddependencies(${PROJECTNAME} ${PROJECTNAME}gencfg) targetlinklibraries(${PROJECTNAME} ${catkinLIBRARIES} 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

Asked by Abbas on 2016-10-09 10:27:15 UTC

Comments

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

Asked by joq on 2016-10-09 12:52:42 UTC

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

Asked by Abbas on 2016-10-09 17:12:36 UTC

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

Asked by Abbas on 2016-10-09 17:20:41 UTC

Answers