Comments (4)
You need to call stop()
after iter_scans()
. Ideally it should be done automatically when iterator is not used any more. One way to solve it which I knew was to use with ... as
, but I didn't like it much.
However after looking into this problem a bit more, it seems it can be solved elegantly by using "try finally" inside the iterator.
from rplidar.
if stop() is always needed, it could better to integrate the function in the iter_scans(). To make your code robust, it should support the eventuality that the users do things that you don't want.
I have also problem after a reset() command because my A2 send a response message.
Anyway I work on improvements and I'll send you a first pull request this afternoon, we 'll be able to discuss on this base.
from rplidar.
hello,
I got the same error while using the iter_measurments() in a for loop. this for loop is used in a thread which is running with two others threads.
from rplidar.
HI
When you got RPLidarException, you'd better to reconnect.
If it does not exceed max retry, make it to connect again.
In my case, it works.
from rplidar.
Related Issues (20)
- check bit not 1
- Is that possiple have a update with A3 compatibility. HOT 3
- animation is not working HOT 1
- Less read points than the C++ version HOT 2
- Sometimes "check bit not equal to 1" HOT 1
- Wrong Body Size ERROR fix HOT 2
- New scan flags mismatch HOT 5
- how fill time_increment and scan_time
- /dev/ttyUSB0 not found HOT 2
- Descriptor Length Mismatch HOT 1
- In every 5 executions, there always are 4 times of "check bit not equal to 1" and 1 success. So weird :-) HOT 2
- rplidar.stop() and rplidar.stop_motor() don't do anything HOT 1
- Incorrect descriptor starting bytes HOT 3
- Low amount of datapoints
- Wrong body size HOT 3
- How to get one measurement at a time HOT 1
- Illegal Instruction (Core Dumped)
- indexerror: list index out of range HOT 2
- What does it mean output of record_measurments.py ? HOT 2
- means of "new_scan" and "quality" yields of iter_measures() method ? HOT 1
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 rplidar.