无法连接多个USB 3.0 Basler相机

时间:2018-07-26 19:17:21

标签: ros

我尝试通过使用pylon_camera节点设置相应的设备ID来连接2台Basler摄像机。但是它没有正确选择设备ID。无需设置设备ID即可使用。

我已经通过执行./setup-usb.sh设置了对USB设备的许可,如此处所述(https://www.baslerweb.com/fp-1510124600/media/downloads/documents/readme/README.txt)。但是,当我在配置文件中指定设备ID(例如2676:ba02:2:2:8)时,它不会检测到相应的设备。这是它抛出的错误

[ INFO] [1531469242.730556970]: Trying to open the following camera: 2676:ba02:2:2:8
 [ERROR] [1531469242.994999730]: Couldn't find the camera that matches the given DeviceUserID: 2676:ba02:2:2:8! Either the ID is wrong or the cam is not yet connected

也许设备ID设置不正确。任何对此发表评论的人都会感激不尽。

我在ROS社区(https://answers.ros.org/question/297261/unable-to-connect-more-than-one-usb-30-basler-cameras/)问。仍然没有回复

1 个答案:

答案 0 :(得分:0)

花费大量时间后,终于找到了解决此问题的正确方法。这是您需要遵循的步骤,

一旦安装了pylon_camera,就会有一个名为pylon_camera_write_device_user_id_to_camera的库。 / ros / lib / pylon_camera /目录。只需一次插入一台摄像机,然后为选定的摄像机分配设备ID,如下所示,

ros/lib/pylon_camera/pylon_camera_write_device_user_id_to_camera traffic_left<this is the id of the camera>

然后在配置文件中定义分配的设备。