Slamtec/rplidar_sdk

buffer overflow for S2 Lidar

Closed this issue · 1 comments

Communication issue with the S2. Am I missing some proper serial configuration ?
When debugged, I am able to go step by step into the ultra_simple or simple_grabber code. It builds the driver and connects to it if given enough time to. Of course it fails on timeout and that is the end of it.

*** buffer overflow detected ***: terminated
Aborted (core dumped)
[1] + Aborted (core dumped) "/usr/bin/gdb" --interpreter=mi --tty=${DbgTerm} 0<"/tmp/Microsoft-MIEngine-In-mtaafm2u.nag" 1>"/tmp/Microsoft-MIEngine-Out-bmj531ty.2ty"

@RickCarp This error generally appears when the USB port is not given the read write permissions.

You can give the following permission to the usbport mention inside the launch file
sudo chmod a+rw /dev/ttyXXX