Comments (4)
Hello, have you solved this problem?
from pyrplidar.
from pyrplidar.
Pi4 + S1
PyRPlidar Info : device is connected
Traceback (most recent call last):
File "simple_scan.py", line 30, in
simple_scan()
File "simple_scan.py", line 16, in simple_scan
scan_generator = lidar.force_scan()
File "/home/pi/.local/lib/python3.7/site-packages/pyrplidar.py", line 170, in force_scan
discriptor = self.receive_discriptor()
File "/home/pi/.local/lib/python3.7/site-packages/pyrplidar.py", line 42, in receive_discriptor
discriptor = PyRPlidarResponse(self.lidar_serial.receive_data(RPLIDAR_DESCRIPTOR_LEN))
File "/home/pi/.local/lib/python3.7/site-packages/pyrplidar_protocol.py", line 110, in init
self.sync_byte1 = raw_bytes[0]
IndexError: index out of range
PyRPlidar Info : device is disconnected
pi@raspberrypi:~/work/pyrplidar/examples $
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
- How to make library work is by doing the following: HOT 11
- Rplidar 3 descriptor length mismatch HOT 7
- 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.