22 lines
297 B
Python
22 lines
297 B
Python
import plotutils
|
|
from mathutils import fit_gaussian, Gaussian
|
|
|
|
RANGE = [-20.0,20.0]
|
|
STEP = 1.0
|
|
LATENCY = 0.005
|
|
|
|
robot.enable()
|
|
move_to_laser()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
robot.set_motors_enabled(True)
|
|
ret = lscan(robot_rz, ue.readable, RANGE[0], RANGE[1], STEP, latency = LATENCY, relative = True, range = "auto")
|
|
|
|
|
|
|
|
|