From f6035231c06be4a685ebc3a63f64733f3a44dc15 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Sat, 22 Nov 2025 09:44:34 +0100 Subject: [PATCH] Move the client out of the simulator --- README.md | 2 +- examples/10_throw_takeoff.py | 2 +- examples/11_emergency_stop.py | 4 ++-- examples/12_flips.py | 2 +- examples/13_rc_movement.py | 2 +- examples/14_speed.py | 2 +- examples/1_check_import.py | 2 +- examples/2_simple_takeoff_land.py | 2 +- examples/3_drone_information.py | 2 +- examples/4_camera_sanity_check.py | 2 +- examples/5_take_a_picture.py | 2 +- examples/6_record_video.py | 2 +- examples/7_movement.py | 2 +- examples/8_rotate.py | 2 +- examples/9_advanced_movement.py | 2 +- examples/navigate_route.py | 2 +- tello_sim/tello_sim_client.py => tello_sim_client.py | 0 17 files changed, 17 insertions(+), 17 deletions(-) rename tello_sim/tello_sim_client.py => tello_sim_client.py (100%) diff --git a/README.md b/README.md index f125b6c..3923c91 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ python tello_sim/run_sim.py You can try running some of the [examples](./examples) to see how the simulation works. The examples are located in the `examples` folder. -Or use the [client](./tello_sim/tello_sim_client.py) class to interact with the simulation server. The client class is located in the `tello_sim` folder. +Or use the [client](./tello_sim_client.py) class to interact with the simulation server. The client class is located in the `tello_sim` folder. ## Troubleshooting diff --git a/examples/10_throw_takeoff.py b/examples/10_throw_takeoff.py index 458bef9..4e53425 100755 --- a/examples/10_throw_takeoff.py +++ b/examples/10_throw_takeoff.py @@ -1,4 +1,4 @@ -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient import time diff --git a/examples/11_emergency_stop.py b/examples/11_emergency_stop.py index 2f4591f..4fc961f 100755 --- a/examples/11_emergency_stop.py +++ b/examples/11_emergency_stop.py @@ -1,8 +1,8 @@ -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient import time -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient # Create a Tello instance tello = TelloSimClient() diff --git a/examples/12_flips.py b/examples/12_flips.py index 5d2c9ee..b9f37b0 100755 --- a/examples/12_flips.py +++ b/examples/12_flips.py @@ -1,4 +1,4 @@ -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient import time diff --git a/examples/13_rc_movement.py b/examples/13_rc_movement.py index b91914a..11d424b 100644 --- a/examples/13_rc_movement.py +++ b/examples/13_rc_movement.py @@ -1,5 +1,5 @@ from typing import Callable -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient import time diff --git a/examples/14_speed.py b/examples/14_speed.py index 6ab3d41..029168c 100644 --- a/examples/14_speed.py +++ b/examples/14_speed.py @@ -1,4 +1,4 @@ -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient import time diff --git a/examples/1_check_import.py b/examples/1_check_import.py index 7afae71..ade34f8 100755 --- a/examples/1_check_import.py +++ b/examples/1_check_import.py @@ -1,4 +1,4 @@ -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient print(TelloSimClient) diff --git a/examples/2_simple_takeoff_land.py b/examples/2_simple_takeoff_land.py index 748b370..4ae0a07 100755 --- a/examples/2_simple_takeoff_land.py +++ b/examples/2_simple_takeoff_land.py @@ -1,7 +1,7 @@ import time -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient # Create a Tello instance diff --git a/examples/3_drone_information.py b/examples/3_drone_information.py index 7fd17a6..6df053f 100755 --- a/examples/3_drone_information.py +++ b/examples/3_drone_information.py @@ -1,7 +1,7 @@ import time -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient # Create a Tello instance tello = TelloSimClient() diff --git a/examples/4_camera_sanity_check.py b/examples/4_camera_sanity_check.py index 1882957..72124ac 100755 --- a/examples/4_camera_sanity_check.py +++ b/examples/4_camera_sanity_check.py @@ -1,4 +1,4 @@ -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient import cv2 # Create a Tello instance diff --git a/examples/5_take_a_picture.py b/examples/5_take_a_picture.py index 346a4e9..ec6fe99 100755 --- a/examples/5_take_a_picture.py +++ b/examples/5_take_a_picture.py @@ -2,7 +2,7 @@ import os import cv2 import time import numpy as np -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient # Initialize and connect tello = TelloSimClient() diff --git a/examples/6_record_video.py b/examples/6_record_video.py index 26446c2..1d6fa23 100755 --- a/examples/6_record_video.py +++ b/examples/6_record_video.py @@ -2,7 +2,7 @@ import os from threading import Thread import time from typing import cast -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient import cv2 diff --git a/examples/7_movement.py b/examples/7_movement.py index a829400..8ca2152 100755 --- a/examples/7_movement.py +++ b/examples/7_movement.py @@ -1,4 +1,4 @@ -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient import time diff --git a/examples/8_rotate.py b/examples/8_rotate.py index 7bc14d5..7034e00 100755 --- a/examples/8_rotate.py +++ b/examples/8_rotate.py @@ -1,4 +1,4 @@ -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient import time diff --git a/examples/9_advanced_movement.py b/examples/9_advanced_movement.py index fb441ea..e1bc6c6 100755 --- a/examples/9_advanced_movement.py +++ b/examples/9_advanced_movement.py @@ -1,6 +1,6 @@ # Not verified working on normal Tello! -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient import time diff --git a/examples/navigate_route.py b/examples/navigate_route.py index b81e6ab..c6d84e6 100755 --- a/examples/navigate_route.py +++ b/examples/navigate_route.py @@ -1,5 +1,5 @@ "Here try to create a script that navigates the drone through a course." -from tello_sim.tello_sim_client import TelloSimClient +from tello_sim_client import TelloSimClient import time diff --git a/tello_sim/tello_sim_client.py b/tello_sim_client.py similarity index 100% rename from tello_sim/tello_sim_client.py rename to tello_sim_client.py