ros-drivers / flir_camera_driver

156 stars 148 forks source link

"Something still holds a reference to a camera" error with multiple Blackfly S cameras #15

Closed ebretl closed 5 years ago

ebretl commented 5 years ago

Setup:

Problem Description:

keenan-burnett commented 5 years ago

I've also seen this error come up in my current set up which is identical to ebretl.

@ebretl Would you mind sharing your launch file setup for running multiple blackfly S cameras at once? I've been struggling to get this working without throwing an error.

ebretl commented 5 years ago

The launch file is here: https://github.com/AutoRally/autorally/blob/evan-flir-kinetic/autorally_core/launch/camera_flir.launch. This launch file is included for each camera (in cameras.launch), and both camera nodelets are loaded into the same manager.

Also, try checking out my pull request and see if that fixes your issue. If not, we should work through it.

keenan-burnett commented 5 years ago

Thanks for this. I was able to resolve my current issue with using multiple cameras after all. Although the issue I was seeing may be specific to my system. I have observed that the spinnaker camera driver will not allow two cameras to be running on the same PCIe card. I'll see if this issue crops up for me again, but it doesn't happen consistently.

keenan-burnett commented 5 years ago

I haven't seen this error since I last commented. I was able to resolve my own issues by setting usbcore.usbfs_memory_mb=10000 using the following instructions: https://www.ptgrey.com/tan/10685

I incorrectly assumed that 1000 MB would be enough for two of my cameras.

mhosmar-cpr commented 5 years ago

Thanks marking as duplicate of #12