d78d0732117d256aafb669b303e79a1da6fe0b26,donkeycar/parts/lidar.py,RPLidar,update,#RPLidar#,25
Before Change
measurements = self.lidar.iter_measurments()
while self.on:
for quality, angles, distances in measurements:
self.distances = distances.copy()
self.angles = angles.copy()
def run_threaded(self):
return self.distances, self.angles
After Change
def update(self):
scans = self.lidar.iter_scans(550)
while self.on:
try:
for scan in scans:
self.distances = [item[2] for item in scan]
self.angles = [item[1] for item in scan]
except serial.serialutil.SerialException:
print("serial.serialutil.SerialException from Lidar. common when shutting down.")
def run_threaded(self):
return self.distances, self.angles
def shutdown(self):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: autorope/donkeycar
Commit Name: d78d0732117d256aafb669b303e79a1da6fe0b26
Time: 2018-08-04
Author: tawnkramer@gmail.com
File Name: donkeycar/parts/lidar.py
Class Name: RPLidar
Method Name: update
Project Name: techfort/pycv
Commit Name: c8ba6700d85c3be085e4c9b5e68251030e497b2c
Time: 2015-06-28
Author: joe.minichino@gmail.com
File Name: chapter9/digits_image_process.py
Class Name:
Method Name:
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 0d646d103590b367c28d1e9588edca610b361e1f
Time: 2016-02-12
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/rackspace/rackspace_virtual_machine.py
Class Name: RackspaceVirtualMachine
Method Name: _Exists
Project Name: pymc-devs/pymc3
Commit Name: 5b2766aae94c0615aef2c8d6ac178428e6d28745
Time: 2008-07-20
Author: fonnesbeck@15d7aa0b-6f1a-0410-991a-d59f85d14984
File Name: pymc/database/mysql.py
Class Name: Trace
Method Name: tally