Hi, I have a lsLidar n301 that I am trying to do mapping with. Everytime I try to launch it using this command:
roslaunch lidar_n301_decoder lidar_n301.launch
It gives me this:
process[lidar_n301_driver_node-1]: started with pid [3036]
process[lidar_n301_decoder_node-2]: started with pid [3037]
[ INFO] [1612535114.993745138]: Opening UDP socket: address 192.168.1.222
[ INFO] [1612535114.994363689]: Opening UDP socket: port 2368
[ INFO] [1612535114.994655261]: expected frequency: 888.889 (Hz)
[ INFO] [1612535115.008378977]: Opening UDP socket: port 2368
bind: Address already in use
[ERROR] [1612535115.008835604]: Cannot open UDP port…
[ERROR] [1612535115.009058713]: Cannot initialize lidar driver…
[ WARN] [1612535115.053882169]: Using GPS timestamp or not 0
[lidar_n301_driver_node-1] process has finished cleanly
log file: /home/ubuntu/.ros/log/b11f3d48-67b9-11eb-b8e3-dca6327f6ea9/lidar_n301_driver_node-1*.log
I have used ifconfig to do the following in order to try and fix it:
ubuntu@devbot:~$ sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.0
ubuntu@devbot:~$ ifconfig
eth0 Link encap:Ethernet HWaddr dc:a6:32:7f:6e:a9
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::dea6:32ff:fe7f:6ea9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9345 errors:0 dropped:0 overruns:0 frame:0
TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:560700 (560.7 KB) TX bytes:16647 (16.6 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1319165 errors:0 dropped:0 overruns:0 frame:0
TX packets:1319165 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:150899355 (150.8 MB) TX bytes:150899355 (150.8 MB)
wlan0 Link encap:Ethernet HWaddr dc:a6:32:7f:6e:aa
inet addr:192.168.8.140 Bcast:192.168.8.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7719 errors:0 dropped:1 overruns:0 frame:0
TX packets:910 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1101558 (1.1 MB) TX bytes:149197 (149.1 KB)
Sorry for the long post but I thought you would need all the information.