From 2e75d531a60e22543e32698bf4d9f698a3f29d33 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Thu, 12 Apr 2018 21:54:09 +0300 Subject: [PATCH] docs: small fix --- docs/snippets.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/snippets.md b/docs/snippets.md index 30964717..2cff01f0 100644 --- a/docs/snippets.md +++ b/docs/snippets.md @@ -86,9 +86,9 @@ start_stamp = rospy.get_rostime() r = rospy.Rate(10) while not rospy.is_shutdown(): - t = (rospy.get_rostime() - start_stamp).to_sec() * SPEED - x = start.x + math.sin(t) * RADIUS - y = start.y + math.cos(t) * RADIUS + angle = (rospy.get_rostime() - start_stamp).to_sec() * SPEED + x = start.x + math.sin(angle) * RADIUS + y = start.y + math.cos(angle) * RADIUS set_position(x=x, y=y, z=start.z) r.sleep()