leishen-lidar / LSN301

GNU General Public License v3.0
0 stars 1 forks source link

Network issues: lslidar poll() timeout #2

Closed JanezCim closed 3 years ago

JanezCim commented 3 years ago

Linux 18.04 ROS: Melodic LIDAR: N30105B Ethernet cable plugged directly from LIDAR PowerBox into the computer Through network manager in Ubuntu I have setup a manual connection with this info:

image

And i am able to ping 192.168.1.222

but when I launch

roslaunch lslidar_n301_decoder lslidar_n301.launch

I get this output

[ INFO] [1606840846.721488303]: Opening UDP socket: address 192.168.1.222
[ INFO] [1606840846.721991603]: Opening UDP socket: port 2368
[ INFO] [1606840846.722011724]: expected frequency: 833.333 (Hz)
[ INFO] [1606840846.722743936]: Opening UDP socket: port 2368
[ INFO] [1606840846.722765880]: Initialised lslidar n301 without error
[ WARN] [1606840846.727713737]: Using GPS timestamp or not 0
[ WARN] [1606840848.725002218]: lslidar poll() timeout
[ WARN] [1606840850.725772905]: lslidar poll() timeout
[ WARN] [1606840852.726016808]: lslidar poll() timeout
[ WARN] [1606840854.728442054]: lslidar poll() timeout
[ WARN] [1606840856.729917406]: lslidar poll() timeout
[ WARN] [1606840858.732288521]: lslidar poll() timeout

Am I doing something wrong?

JanezCim commented 3 years ago

i figured out that my computer needs to have a static IP of 192.168.1.125 to be able to talk with the lidar, then it worked. These are the settings with which it worked:

image