Running Bumblebee2 on ROS: tutorial[ROS下安装bumblebee2相机]

43 篇文章 0 订阅
23 篇文章 1 订阅
 
Bumblebee2 is a third party package for Point Gray stereo camera. To use the camera in ROS, first checkout the package in svn repository  http://cu-ros-pkg.googlecode.com/svn/trunk/bumblebee2

To use Bumblebee2, you also need the dependency libdc1394v2, which is available at  http://cornell-ros-pkg.googlecode.com/svn/trunk/bumblebee2/camera_drivers_experimental/libdc1394v2

Put both packages in the package path of ROS. rosdep install and rosmake Bumblebee2. Connect Bumblebee2 to your computer and start roscore.

Then you run
 
  • rosrun bumblebee2 bumblebee2 
Probably you will get a segmentation error and you can't stop it with Ctrl+C. This is because ROS electric  has updated its image_pipeline package, which generates data leaking. To fix this, you can add two lines in "bumblebee2.cpp". Note that both lines are to be added at the beginning of the"updateBumblebee2CalibrationData" function.
  • add "left_cam_info_.D.resize(5);" and right_cam_info_.D.resize(5);
  • right_cam_info_.distortion_model = left_cam_info_.distortion_model = "plumb_bob"
Now rosmake the package again, and run the node. Probably you will not see the segmentation errors.
 
Then you can view the images from left and right cameras. But now you probably find images from the left cameras is full of noise and also seems to come from the right one. This is because the default output format is not set to "FORMAT7_MODE3", which is the stereo output format.
 
To correct this, go to "dev_camera1394.cpp" and replace "videoMode_" with DC1394_VIDEO_MODE_FORMAT7_3". Try it again to see if it is working. If you still get errors, you can add the following
  • if (DC1394_SUCCESS != dc1394_format7_set_packet_size(camera_,DC1394_VIDEO_MODE_FORMAT7_3,Package_size)) { ROS_WARN("Failed to set package size"); DMA_Success = false; }
Here you need to specify a integer for Package_size. You can find the range by using Coriander, under the "ROI" tab. In my case, I set it to 2000.
 
Now try it again and see how it is going.

Thanks to Bram van de Klundert. See more reference below:
http://answers.ros.org/question/1096/segmentation-fault-of-bumblebee2?answer=1891#1891
http://answers.ros.org/question/1118/bumblebee2-640x480-under-diamondback

Next you can follow the ROS tutorial on stereo processing:  http://www.ros.org/wiki/stereo_image_proc
Posted 24th November 2011 by  Ninghang
  

View comments

  1. anon36.pnguploading.4e448015.gif转存失败重新上传取消

    Hi, this post helped me so much! But I'm still getting a noisy left image. I wonder exactly what lines I have to change in "dev_camera1394.cpp" in order to change videoMode_ and add the code extract.
    Thank you Ninghang!
    Natalia.

    Reply
    Replies
     
    • anon36.pnguploading.4e448015.gif转存失败重新上传取消

      Now it works fine. I found the answer at the link you've recommended: http://answers.ros.org/question/1118/bumblebee2-640x480-under-diamondback

      Thank you for your attention anyway.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值