ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Segmentation fault of Bumblebee2

asked 2011-05-31 20:44:43 -0500

Nutan gravatar image

updated 2011-06-19 13:07:44 -0500

HI, all,

I am trying to use bumblebee2. After roslaunch bumblebee2 Bumblebee2.launch, the error is Segmentation fault, stopping camera driver. Could someone help me? Thank you


memcpy(&left_cam_info_.K[0], &left_K_data[0], sizeof(left_K_data));


ERROR

terminate called after throwing an instance of 'image_transport::TransportLoadException'

what(): Unable to load plugin for transport 'raw', error string:

According to the loaded plugin descriptions the class image_transport/raw_sub with base class type image_transport::SubscriberPlugin does not exist. Declared types are image_transport/compressed_sub image_transport/theora_sub raw_sub

[stereo_image_proc-3] process has died [pid 8686, exit code -6]. log files: /home/nutan/.ros/log/d385af58-97bb-11e0-b1e7-00e081b5d370/stereo_image_proc-3*.log

LOG

stereo_image_proc-3.log

edit retag flag offensive close merge delete

Comments

I manage to find out what causes the error. The error was due to memcpy the calibration data into the cam_info. Does anyone have any idea why this is happening?
Nutan gravatar image Nutan  ( 2011-06-02 15:53:19 -0500 )edit
You might want to reformat that. (use the edit link below your post)
Asomerville gravatar image Asomerville  ( 2011-06-02 18:40:19 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2011-07-06 15:48:18 -0500

Patrick Mihelich gravatar image

The stereo_image_proc error suggests that you have incompatible C-turtle and Diamondback stack versions mixed together. Can you check the output of:

rosversion image_common
rosversion image_pipeline
rosversion image_transport_plugins

They should all be 1.4.x.

edit flag offensive delete link more
3

answered 2011-06-06 04:06:44 -0500

Bram van de Klundert gravatar image

hi Nutan,

the bumblebee2 node contains a bug when setting the CameraInfo on diamondback.

to fix this problem you will need to edit 2 things in the file: "bumblebee2.cpp" the first thing that needs to be done is to resize left_cam_info_.D (left_cam_info_.D.resize(5);) and right_cam_info_.D (right_cam_info_.D.resize(5);)

the second thing that needs to be done is to set the camera info distortion_model to plumb_bob. if this isn't done stereo_camera_proc wont be able to process the image. (right_cam_info_.distortion_model = left_cam_info_.distortion_model = "plumb_bob";)

edit flag offensive delete link more

Comments

Hi Bram, Thaks. Do you mean replace " memcpy(&left_cam_info_.D[0], &left_D_data[0], sizeof(left_D_data)); " by "memcpy(&left_cam_info_.D.resize(5), &left_D_data[0], sizeof(left_D_data));" ?
Nutan gravatar image Nutan  ( 2011-06-08 16:03:03 -0500 )edit
no, you will need add those in the initialization of the class or beginning of the updateBumblebee2CalibrationData function. resize will ensure the array is large enough to contain the data your going to copy into it.
Bram van de Klundert gravatar image Bram van de Klundert  ( 2011-06-09 01:51:52 -0500 )edit
After I added the resize and set the distortion_model for the cam info, the segmentation fault was gone. However, when I try to run the stereo view to get the disparity image, i only get3 blank windows with nothing being displayed. Then an error occurs. I pasted the error info and attached log file above.
Nutan gravatar image Nutan  ( 2011-06-09 21:00:50 -0500 )edit
the disparity image is published by stereo_image_proc, so you always need to run that to get the disparity image. beside that can you check what images the bumblebee2 node publishes by using image_view to check both topics (see if it publishes anything)
Bram van de Klundert gravatar image Bram van de Klundert  ( 2011-06-11 22:54:50 -0500 )edit
I am sorry. The previous error was because of the stereo_proc_image process dying. I have already edit and upload the new error above.
Nutan gravatar image Nutan  ( 2011-06-15 14:07:02 -0500 )edit
i think you should ask the question about stereo_image_proc in a new question so it gets recorded for everyone. i cant help you with that (never ran into that problem)
Bram van de Klundert gravatar image Bram van de Klundert  ( 2011-06-23 06:43:29 -0500 )edit

Question Tools

Stats

Asked: 2011-05-31 20:44:43 -0500

Seen: 1,213 times

Last updated: Jul 06 '11