-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting Multiple Camera #65
Comments
I wouldn't believe there is any limitation in the library. It launches 6 instances of the same driver, one for each camera right? I wouldn't see how that would be an issue with 6 processes, or 6 threads if running in nodelets. I would probably try the processes way if you are running in nodelets, just in case, but I doubt there will be any difference. You most probably are running into USB bandwidth problems by using 6 USB cameras. Have you checked The fact that a different camera does that each time is what makes me really suspicious of being a USB hardware-related issue, I've run in the same in the past, but with cameras behaving weirdly, not totally not working. I tried other camera drivers (gscam, video_stream_opencv) and that didn't help either. |
@awesomebytes , Thank for the quick reply.
|
That's very interesting (and odd). I must say I'm not a developer from this package, I just happened to use it at some point so I'm subscribed to the issues. Your setup sounds robust. And the usb_cam ros experiment would discard the hardware issue, also. I can suggest to run the 6th instance of the node in gdb and see where it hangs? I gave a quick look at the code, and it looks rather simple. Hopefully it may get stuck in some step that can be workarounded. Sorry if you already tried that. Also, why not try to run a couple of cameras in nodelets? Kinda easy to try too. Yet another approach to try... Run a docker with ubuntu 18.04 to try libucv_ros there (libuvc will be a different version potentially). Also the last version in master here has a few extra commits not in the released versions (even thought on first sight they don't look very meaningful to your problem). Even trying the test program from the libuvc library itself could be tested. If that doesn't work, it's probably a problem of libuvc internally (or some default configuration set inadvertently here). That's all I can think of right now! Good luck! Keep us posted. |
@awesomebytes , Thank you for the suggestions. I will check and update. |
Hello, have you solved this problem?I want to use three cameras at the same time, but I also encountered this problem. There is often no image from one or two cameras. |
@QiTianDaShengMaoHuiFei , I couldn't figure out the exact issue(there could be issues with libuvc also). I used a different ros package for my use case. |
Thanks for your reply, can you tell me which library you use? |
I am also interested in the alternative package. Could you tell us which one you used? Thank you |
@QiTianDaShengMaoHuiFei , @grafoteka , I modified this one for my purposes. |
thanks,I successfully connected four usb cameras with this code |
Mee too, thank you.
… El 20 oct 2021, a las 9:21, QiTianDaShengMaoHuiFei ***@***.***> escribió:
@QiTianDaShengMaoHuiFei , @grafoteka ,
I modified this one for my purposes.
thanks,I successfully connected four usb cameras with this code
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I am trying to read the manual which is provided above of ros1 but can’t understand what to do. Anyone please help me i want to integrate 5 cameras on ros1 using a USB hub and then that hub is connected to my laptop please help me out as I have to submit this task on Monday. |
My answer may not be very useful, but I doubt you'll be able to get 5 USB
cameras working at the same time with a USB hub. You'll run out of
bandwidth in the port.
2 or 3 maybe, if you have a very good laptop and it's a thunderbolt port...
Maybe 3 or 4?
But 5 is very unlikely. Compute the bandwidth for one camera with something
like 'usbtop', and multiply *5... Check the maximum bandwidth of both your
USB port and the USB hub (albeit they rarely specify it) and... Add that to
your report.
Good luck!
…On Fri, Jun 7, 2024, 23:47 aqsakhalid18 ***@***.***> wrote:
I am trying to read the manual which is provided above of ros1 but can’t
understand what to do. Anyone please help me i want to integrate 5 cameras
on ros1 using a USB hub and then that hub is connected to my laptop please
help me out as I have to submit this task on Monday.
—
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANEK5GQAGUNSMUXG6JP7TDZGI2ANAVCNFSM6AAAAABI7NCI56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGY3DKMBVGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thank you so much for your guidance if you have any other solution
regarding this problem please let me know .
On Sun, 9 Jun 2024 at 3:01 AM, Sam Pfeiffer ***@***.***>
wrote:
… My answer may not be very useful, but I doubt you'll be able to get 5 USB
cameras working at the same time with a USB hub. You'll run out of
bandwidth in the port.
2 or 3 maybe, if you have a very good laptop and it's a thunderbolt
port...
Maybe 3 or 4?
But 5 is very unlikely. Compute the bandwidth for one camera with
something
like 'usbtop', and multiply *5... Check the maximum bandwidth of both your
USB port and the USB hub (albeit they rarely specify it) and... Add that
to
your report.
Good luck!
On Fri, Jun 7, 2024, 23:47 aqsakhalid18 ***@***.***> wrote:
> I am trying to read the manual which is provided above of ros1 but can’t
> understand what to do. Anyone please help me i want to integrate 5
cameras
> on ros1 using a USB hub and then that hub is connected to my laptop
please
> help me out as I have to submit this task on Monday.
>
> —
> Reply to this email directly, view it on GitHub
> <
#65 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AANEK5GQAGUNSMUXG6JP7TDZGI2ANAVCNFSM6AAAAABI7NCI56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGY3DKMBVGM>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJA453HWC2XAQT7ZXDLSNODZGN5KFAVCNFSM6AAAAABI7NCI56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGIYDEMZZGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I am trying to stream from 6 camera using this ros package. I am getting data from 5 cameras but the 6th camera is not sending any data at all. Every time it's launched, a different camera wouldn't stream data. i.e at any time only 5 camera are being streamed.
Specs:
Is there any limitation on the library?
The text was updated successfully, but these errors were encountered: