ros-drivers / pointgrey_camera_driver

ROS driver for Pt. Grey cameras, based on the official FlyCapture2 SDK.
128 stars 179 forks source link

issue viewing multicameras from rviz or image_view #23

Closed PatrickHussey closed 9 years ago

PatrickHussey commented 9 years ago

Here's my issue:

I launch 2 Flea3 USB3 cameras with separate namespaces and separate nodelet managers: works as expected

Everything works fine, the topics are publishing and I get this result, as expected: before_both_open_in_imageview

Now everything continues to work just fine if I open 1 image at a time in either image_view or rviz.

Here's the issue, when I open both images at the same time everything falls apart. I also tried launching image_view as a nodelet inside the individual namespaces with separate nodelet managers. I get a strange result after attempting to open simultaneously: after_both_open_in_imageview

I can get both to display in image_view with a modified versions of the camera1394, libdc1394, and libusb. But not with the pointgrey_camera_driver.

I know this was brought up in a closed issue, but it did not have resolution there. Anyone have an idea why this might be happening? I am completely stumped....

dani-carbonell commented 9 years ago

I still have this problem with two GigE PGE cameras. I get this error when some node demands images from the second camera:

[ERROR] [1419250192.411562627]: PointGreyCamera::grabImage Failed to retrieve buffer | FlyCapture2::ErrorType 41There is an image consistency issue with this image.

mikepurvis commented 9 years ago

@konradb3 @ecuzzillo Do you guys know anything about this?

Potentially related: #28 https://github.com/ros-drivers/pointgrey_camera_driver/issues/27#issuecomment-63192036

ecuzzillo commented 9 years ago

Not at all. The only thing I would note is that the 'There is an image consistency issue with this image." spams quite regularly in normal operation. I imagine there is some crazy bug with reusing memory when it's not supposed to, but I have no good idea for where it would be.

dani-carbonell commented 9 years ago

I have reinstalled the ros-package and checked the version of libflycapture2. I still have the same issues. In the video I run a launch file with two nodelet-managers (one per camera).

https://www.youtube.com/watch?v=k-XHjpnZuAg&feature=youtu.be

PatrickHussey commented 9 years ago

this was an issue related to this:

https://github.com/ros-drivers/pointgrey_camera_driver/issues/8

it can be closed as well

kingfolk commented 8 years ago

Hi Patrick,

I use your launch file https://github.com/ros-drivers/pointgrey_camera_driver/issues/8#issuecomment-70251545 for two flea3 cameras. But only the first camera is streaming, although i got topics from both left_camera and right_camera. I have already follow the instruction of usbfs setting. Do you have a clue of what might be wrong?

many thanks

JakubWedrowycz commented 8 years ago

Hello, I am trying to use two Pointgrey cameras, and also have this problem: [ERROR] [1446217164.145882434]: PointGreyCamera::grabImage Failed to retrieve buffer | FlyCapture2::ErrorType 41There is an image consistency issue with this image.

The cameras are connected, and I can see the topic for both, but once I want to see the stream from them, using image_view, the error occurs for image_raw topic. And to compare for image_mono, the window just opens but no stream is visible (white window) and no error message is sent. I tried increasing memory buffer, I followed the solutions from ROS Wiki but it doesn't help - still the same error. The funny thing is, that my friend is using exactly the same launch file on his computer and the same version of driver and ROS, and it works for him strangely: he can see the stream but once in a few seconds he receives the same error message, but the stream doesn't stop. Can anyone help with that? I would really appreciate it