Install: uninstall Ra # checking_connectivity_with_corianderDetection 2: Detection
Http://blog.sina.com.cn/s/blog_661159d50100quaf.html
Try get from: http://ninghang.blogspot.com/2011/11/running-bumblebee2-on-ros-tutorial.html 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
"Format7_mode3", which is the stereo output format.
To correct this, go to "dev_camera1394.cpp" and replace "videomode _" with example ". 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_procPosted 24th
November 2011By ninghanglabels: bumblebee2 electric Ros Segmentation
Fault 2
View comments
- AnonymousElse l
17,201 2 at 3:04 pmHi, 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
- AnonymousElse l
17,201 2 at 3: 58 pmNow 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.