Closed Achllle closed 5 years ago
@Achllle may be the device port rplidar is blocked by OS(because of other node process) , it is fine when you replugged.
when you happen again, give some message in detail by the following command:
ls -la /dev/ttyUSB*
ls -la /dev/rplidar
I occasionally get an error launching my A2 indicating that ROS can't establish a connection with it, the same error as when the lidar isn't plugged in:
The problem is resolved when the USB is unplugged and replugged. This made me suspect that the problem is due to the udev rule in the scripts folder and indeed, when I directly specify the portname using the ttyUSB* name, I never get the error. I tested this by repeatedly launching through the symlink 'rplidar' and continuously failing and the specifying the direct portname instead and it immediately working.
I also opened this issue on the slamtec repo as I only saw this seemingly more active one later