Update client.py

This commit is contained in:
artem30801
2019-02-18 00:15:12 +03:00
committed by GitHub
parent 0441866e09
commit 97220cd47e

View File

@@ -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():