Slamtec / rplidar_sdk

Open source SDK for Slamtec RPLIDAR series products
BSD 2-Clause "Simplified" License
428 stars 262 forks source link

buffer overflow for S2 Lidar #69

Closed RickCarp closed 2 years ago

RickCarp commented 2 years ago

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"

vivekmange56 commented 2 years ago

@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