解决basler相机用网线连接采集数据时出现带宽问题

ros

  • 1. 问题
  • 2. 解决方法

1. 问题

执行launch文件:

roslaunch pylon_camera pylon_camera_node.launch
或者
rosrun pylon_camera pylon_camera_node

遇到
[ WARN] [1493037429.575879168]: Pylon camera returned invalid image! Skipping
[ERROR] [1493037429.784726148]: Error: 3774873620 The buffer was incompletely grabbed. This can be caused by performance problems of the network hardware used, i.e. network adapter, switch, or ethernet cable …

2. 解决方法

参考 pylon_camera Error: Grab was not successful 文章
I solved the problem by looking at the inter-pkg-delay and MTU in PylonViewerApp that was set to inter-pkg-delay: 0 and MTU: 1500 which works with ~85 fps and no errors. The pylon_camera driver doesn’t work with these settings but when I increase the MTU of my network device from 1500 to 3000 with sudo ifconfig eth0 mtu 3000 up it’s working.

将eth1换成在plyon里面的设备名,

sudo ifconfig eth1 mtu 3000 up

终于解决这个问题了,呵呵哈哈哈或或或或或或或或或或或或或或或或!

你可能感兴趣的:(linux)