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

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ libuvc_osx.patch (application/octet-stream)
+ (text/html)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: User discussions
Subject: Re: [ros-users] USB camera (UVC) driver API review
Ken,

I finally got it to work!



It still didn't work for me at first … there was a library issue and I added a couple lines to your make file to fix it. Error shown below:

[kevin@TARDIS libuvc_camera]$ rosrun libuvc_camera camera_node
dyld: Library not loaded: libuvc.dylib
Referenced from: /Users/kevin/ros_sandbox/libuvc_ros/libuvc_camera/bin/camera_node
Reason: image not found
Trace/BPT trap: 5

Once the library issue was fixed I still can't run it. Not sure what I am supposed to do? It doesn't find the camera on my macbook pro, am I supposed to pass camera_node something? Maybe my built in camera is not a UVC camera??? I tried giving it vendor and product id, but that didn't help.

[kevin@TARDIS libuvc_camera]$ rosrun libuvc_camera camera_node
[ INFO] [1329608705.284208000]: using default calibration URL
[ INFO] [1329608705.285405000]: camera calibration URL: file:///Users/kevin/.ros/camera_info/camera.yaml
[ERROR] [1329608705.285662000]: Unable to open camera calibration file [/Users/kevin/.ros/camera_info/camera.yaml]
[ WARN] [1329608705.285929000]: Camera calibration file /Users/kevin/.ros/camera_info/camera.yaml not found.
[ INFO] [1329608705.332974000]: Opening camera with vendor=0x0, product=0x0, serial="", index=0
uvc_open: Unknown error (-99)

I tried a Logitech c270 which is uvc and it gave me the same answer except for the error changed to:

uvc: device has a status interrupt endpoint, but unable to read from it
uvc_open: Unknown error (-99)

However, once I told it vendor and product code for the Logitech camera, it worked!!

rosrun libuvc_camera camera_node _vendor:="0x046 _product:="0x0825"


On Feb 18, 2012, at 3:47 PM, Ken Tossell wrote:

> On Sat, Feb 18, 2012 at 9:48 AM, Kevin Walchko <> wrote:
> Here is a patch for the rosdep.yaml for OSX for lib-usb.
>
> Applied, thanks!
>
> 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.
>
> I've taken -lrosthread out of libuvc's manifest.xml. I'm assuming it was removed recently, like -lros was removed in Fuerte, though both of those flags are still suggested on <http://ros.org/wiki/Manifest#Example> and <http://www.ros.org/doc/api/rospkg/html/manifest_xml.html#export-cpp>. Anyway, libuvc didn't need to use any ROS libraries.
>
> - Ken
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users