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

Multiple USB Cameras

asked 2020-12-08 05:33:25 -0500

gewi1011 gravatar image

Hello, I'm actually working on a project where i should implement multiple USB Basler Cameras with the pylon_camera driver. I already get successfully an image, but only from a single camera. I set each camera a different UserDevice ID ("camera_01" and "camera_02") and reset them afterwards. I changed the Parameters in the default.yaml file at catkin_ws/src/pylon-ros-camera/pylon_camera/config as mentioned in the READ_ME File in the package folders: device_user_id: "camera_01" but it only detect one camera with its user ID. It tried also to add both camera-IDs (i tried something like: device_user_id: "camera_01", "camera_02") to the parameter but i got an error. I couldn't find any information how this driver work with multiple cameras. Is it necessary to run one node for each camera? Or do i have to switch between the user IDs? And how do adapt some settings of a specific camera with rosservice, how do i adress the camera?

And last but not least, by changing the frame_rate at the parameters in the default.yaml file at 30, i got following error: "Desired framerate 30.00 is higher than max possible. Will limit framerate to: 14.83 Hz". How could i reach a higher framerate? By adapting the USB transfer size?

i would appreciate any help! Greetings gewi1011

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-12-08 08:45:37 -0500

tryan gravatar image

As with most driver nodes, this one appears to handle a single sensor, so one node for each camera is probably what you need. The pylon-ros-camera GitHub repo has information about modifying parameters with services. Each camera driver node should have its own namespace and services. As for how to increase the frame rate, it depends where the limitation is. Your camera's documentation probably states its maximum FPS and how best to configure it. Assuming that max FPS is not the limiting factor, you may be able to reduce the resolution or increase the bandwidth, but that depends on your hardware. The manufacturer is the best source of answers for that kind of question.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2020-12-08 05:19:11 -0500

Seen: 416 times

Last updated: Dec 08 '20