From bb6226f42048e63d13f75ea134e3c2d30c5d7a03 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Mon, 19 Feb 2018 22:24:27 +0300 Subject: [PATCH] Updates docs/snippets.md Auto commit by GitBook Editor --- docs/snippets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/snippets.md b/docs/snippets.md index 69e87ad6..0964010d 100644 --- a/docs/snippets.md +++ b/docs/snippets.md @@ -48,7 +48,7 @@ print navigate(frame_id=frame_id, x=1, y=2, z=3, speed=0.5) while True: telem = get_telemetry(frame_id=frame_id) # Вычисляем расстояние до заданной точки - if get_distance(1, 2, 3, telem.x, telem.y, telem.z) < TOLERANCE: + if get_distance(1, 2, 3, telem.x, telem.y, telem.z) < tolerance: # Долетели до необходимой точки break rospy.sleep(0.2)