[ros-users] USB camera (UVC) driver API review

Kevin Walchko kevin.walchko at gmail.com
Sat Feb 18 14:48:49 UTC 2012


Hi,

Here is a patch for the rosdep.yaml for OSX for lib-usb.

I tried to compile this on my Mac and it failed complaining:  ld: library not found for -lrosthread. I haven't heard of that library before.

-- snippet ---

[rosmake-0] Finished <<< test_rosmake [PASS] [ 1.44 seconds ]                   
[rosmake-0] Starting >>> test_roscpp [ make ]                                   
[rosmake-0] Finished <<< test_roscpp [PASS] [ 12.43 seconds ]                   
[rosmake-0] Starting >>> test_crosspackage [ make ]                             
[rosmake-0] Finished <<< test_crosspackage [PASS] [ 2.53 seconds ]              
[rosmake-0] Starting >>> test_rosservice [ make ]                               
[rosmake-0] Finished <<< test_rosservice [PASS] [ 2.26 seconds ]                
[rosmake-0] Starting >>> test_topic_tools [ make ]                              
[ rosmake ] Last 40 linesbuvc_camera: 24.7 sec ] ... [ 2 Active 69/93 Complete ]
{-------------------------------------------------------------------------------
  [rosbuild] Cached build flags older than manifests; calling rospack to get flags
  [rosbuild] Including /usr/local/electric/ros_comm/clients/roslisp/cmake/roslisp.cmake
  [rosbuild] Including /usr/local/electric/ros_comm/clients/rospy/cmake/rospy.cmake
  [rosbuild] Including /usr/local/electric/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
  MSG: gencfg_cpp on:UVCCamera.cfg
  Finding dependencies for /Users/kevin/ros_sandbox/libuvc_ros/libuvc_camera/cfg/UVCCamera.cfg
  -- Configuring done
  -- Generating done
  CMake Warning:
    Manually-specified variables were not used by the project:
  
      CMAKE_TOOLCHAIN_FILE
  
  
  -- Build files have been written to: /Users/kevin/ros_sandbox/libuvc_ros/libuvc_camera/build
  cd build && make -l2
  Scanning dependencies of target ROSBUILD_gencfg_cpp
  [ 20%] Generating ../cfg/cpp/libuvc_camera/UVCCameraConfig.h, ../docs/UVCCameraConfig.dox, ../docs/UVCCameraConfig-usage.dox, ../src/libuvc_camera/cfg/UVCCameraConfig.py, ../docs/UVCCameraConfig.wikidoc
  Generating reconfiguration files for UVCCamera in libuvc_camera
  [ 20%] Built target ROSBUILD_gencfg_cpp
  Scanning dependencies of target rospack_gencfg
  [ 20%] Built target rospack_gencfg
  Scanning dependencies of target rospack_genmsg_libexe
  [ 20%] Built target rospack_genmsg_libexe
  Scanning dependencies of target rosbuild_precompile
  [ 20%] Built target rosbuild_precompile
  Scanning dependencies of target camera_node
  [ 40%] Building CXX object CMakeFiles/camera_node.dir/src/main.o
  [ 60%] Building CXX object CMakeFiles/camera_node.dir/src/camera_driver.o
  /Users/kevin/ros_sandbox/libuvc_ros/libuvc_camera/src/camera_driver.cpp: In member function ‘void libuvc_camera::CameraDriver::AutoControlsCallback(uvc_status_class, int, int, uvc_status_attribute, void*, size_t)’:
  /Users/kevin/ros_sandbox/libuvc_ros/libuvc_camera/src/camera_driver.cpp:162: warning: format ‘%u’ expects type ‘unsigned int’, but argument 6 has type ‘size_t’
  /Users/kevin/ros_sandbox/libuvc_ros/libuvc_camera/src/camera_driver.cpp:162: warning: format ‘%u’ expects type ‘unsigned int’, but argument 6 has type ‘size_t’
  /Users/kevin/ros_sandbox/libuvc_ros/libuvc_camera/src/camera_driver.cpp:165: warning: enumeration value ‘UVC_STATUS_CLASS_CONTROL’ not handled in switch
  Linking CXX executable ../bin/camera_node
  ld: library not found for -lrosthread
  collect2: ld returned 1 exit status
  make[3]: *** [../bin/camera_node] Error 1
  make[2]: *** [CMakeFiles/camera_node.dir/all] Error 2
  make[1]: *** [all] Error 2
-------------------------------------------------------------------------------}
[ rosmake ] Output from build of package libuvc_camera written to:
[ rosmake ]    /Users/kevin/.ros/rosmake/rosmake_output-20120218-092742/libuvc_camera/build_output.log
[rosmake-1] Finished <<< libuvc_camera [FAIL] [ 24.76 seconds ]                 
[ rosmake ] Halting due to failure in package libuvc_camera. 
[ rosmake ] Waiting for other threads to complete.
[rosmake-0] Finished <<< test_topic_tools [PASS] [ 2.54 seconds ]               
[ rosmake ] Results:                                                            
[ rosmake ] Built 71 packages with 1 failures.                                  
[ rosmake ] Summary output to directory                                         
[ rosmake ] /Users/kevin/.ros/rosmake/rosmake_output-20120218-092742            
[ rosmake ] WARNING: Rosdep did not detect the following system dependencies as installed: libusb-1.0 Consider using --rosdep-install option or `rosdep install libuvc_camera libuvc`




On Feb 17, 2012, at 1:44 PM, Ken Tossell wrote:

> As part of the drivers SIG's effort to establish officially supported driver packages for USB cameras, I'm proposing a new USB Video Class (UVC) driver.
> 
> http://www.ros.org/wiki/libuvc_camera
> 
> libuvc_camera uses a libusb-based userspace UVC library to stream video frames from UVC devices and to read, set and monitor control settings. It is intended to be cross-platform (Mac, potentially Windows) and to enable ROS driver features that are not available through Video4Linux. Examples include more accurate timestamps; lower, more predictable latency; and efficient monitoring of camera-controlled parameters (e.g., exposure time).
> 
> I've created an API review page:
> 
> http://www.ros.org/wiki/libuvc_camera/Reviews/2012-02-23_API_Review
> 
> If you are interested in this driver, please take a look at the ROS API and share your comments on the review page.
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20120218/e9c5fd48/attachment-0008.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osx_rosdep.patch
Type: application/octet-stream
Size: 232 bytes
Desc: not available
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20120218/e9c5fd48/attachment-0004.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20120218/e9c5fd48/attachment-0009.html>


More information about the ros-users mailing list