Comments (7)
I'm using an A2-M12, and get:
File "usr/local/lib/python3.7/dist-packages/pyrplidar.py", line 156, in scan_generator
data = self.receive_data(discriptor)
File "usr/local/lib/python3.7/dist-packages/pyrplidar.py", line 54, in receive_data
raise PyRPlidarProtocolError()
pyrplidar_protocol.PyRPlidarProtocolError
Any hint on handling this problem that happens randomly?
from pyrplidar.
same problem
from pyrplidar.
This seems to be an issue with newer firmware versions? an example using start_scan_express, depending on the value i can have pyrplidarprotocolerror from line 54 on pyrplidar.py, and also an error on line 151 on pyrplidar.py data =self.receive_data(discriptor) .
changing start_scan_Express(3) to 4 gives me this, using 2 or one I get sync bytes are mismatched and no idea how to fix this.
from pyrplidar.
This error alongside bytes mismatch happen if you try to run any type of scan while the LiDAR has the motor on , disconnecting the lidar and stopping motor and reconnecting will make this error go away as long as you had set up the A3 by editing libraries to adjust for the baudrate.
from pyrplidar.
I solve this issue by adding baudrate=256000 argument into RPLidar class and the lidar just spins. (reconnection still required)
from pyrplidar.
On Windows 10, modifying a file the pyrplidar_serial.py from library helps.
In line 13 replace:
"self._serial = serial.Serial(port, baudrate, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, timeout=timeout, dsrdtr=True)"
to
" self._serial = serial.Serial(port, baudrate, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, timeout=timeout, dsrdtr=False)"
from pyrplidar.
Related Issues (10)
- IndexError: string index out of range HOT 11
- lidar.connect() does not clear DTR and motor will stop
- Code for readme animation HOT 3
- RPLIDAR S1 doesn't work HOT 4
- How to make library work is by doing the following: HOT 11
- IndexError: index out of range HOT 9
- How to set scan mode(s)?
- set/get motor speed and sampling rate
- In Windows force_scan does not work and start_scan mangles data after 20000 cycles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyrplidar.