simondlevy / BreezySLAM

Simple, efficient, open-source package for Simultaneous Localization and Mapping
GNU Lesser General Public License v3.0
758 stars 251 forks source link

rpslam.py Error #77

Open sonurdogan opened 3 years ago

sonurdogan commented 3 years ago

Hi! I am using raspberry pi 4 4gb and rplidar A1. I set up BreezySlam and run the rpslam.py example code but, I got a very different error. Code printed the map then I got the error. Error: python3 rpslam.py /usr/local/lib/python3.9/dist-packages/roboviz/init.py:65: MatplotlibDeprecationWarning: The set_window_title function was deprecated in Matplotlib 3.4 and will be removed two minor releases later. Use manager.set_window_title or GUI-specific methods instead. fig.canvas.set_window_title('SLAM') /usr/local/lib/python3.9/dist-packages/roboviz/init.py:83: UserWarning: FixedFormatter should only be used together with FixedLocator self.ax.set_xticklabels(labels) /usr/local/lib/python3.9/dist-packages/roboviz/init.py:84: UserWarning: FixedFormatter should only be used together with FixedLocator self.ax.set_yticklabels(labels) Too many measurments in the input buffer: 798/500. Clearing buffer... Traceback (most recent call last): File "/home/robotics/Desktop/BreezySLAM/examples/rpslam.py", line 67, in items = [item for item in next(iterator)] File "/home/robotics/.local/lib/python3.9/site-packages/rplidar.py", line 357, in iter_scans for new_scan, quality, angle, distance in iterator: File "/home/robotics/.local/lib/python3.9/site-packages/rplidar.py", line 333, in iter_measurments yield _process_scan(raw) File "/home/robotics/.local/lib/python3.9/site-packages/rplidar.py", line 80, in _process_scan raise RPLidarException('Check bit not equal to 1') rplidar.RPLidarException: Check bit not equal to 1