From 97220cd47eb24c0dff269e35ece79d5161132371 Mon Sep 17 00:00:00 2001 From: artem30801 <38689676+artem30801@users.noreply.github.com> Date: Mon, 18 Feb 2019 00:15:12 +0300 Subject: [PATCH] Update client.py --- Drone/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Drone/client.py b/Drone/client.py index 61004da..5f0e56c 100644 --- a/Drone/client.py +++ b/Drone/client.py @@ -101,8 +101,9 @@ def write_to_config(section, option, value): def animation_player(running_event, stop_event): print("Animation thread activated") rate = rospy.Rate(1000 / 100) - first_frame = play_animation.get_frames()[0] - play_animation.takeoff(round(float(first_frame['x']), 4), round(float(first_frame['y']), 4), round(float(first_frame['z']), 4)) + # first_frame = play_animation.get_frames()[0] + # play_animation.takeoff(round(float(first_frame['x']), 4), round(float(first_frame['y']), 4), round(float(first_frame['z']), 4)) + play_animation.takeoff() for current_frame in play_animation.get_frames(): running_event.wait() if stop_event.is_set():