我正在尝试通过使用pylon_camera节点设置各自的设备ids来连接两个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/ )问道。仍然没有回复
发布于 2018-07-27 18:18:52
在花了很多时间之后,终于找到了解决这个问题的正确方法。以下是您需要遵循的步骤,
安装pylon_camera之后,可以在/ros/ lib /pylon_camera/目录中找到一个名为pylon_camera_write_device_user_id_to_camera的库。只需一次插入一个摄像机并将设备id分配给所选摄像机,如下所示,
ros/lib/pylon_camera/pylon_camera_write_device_user_id_to_camera traffic_left<this is the id of the camera>然后在配置文件中,定义已分配的设备。
https://stackoverflow.com/questions/51546102
复制相似问题