-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
957752f
commit 488a233
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import setup_path | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lovettchris
Author
Member
|
||
import airsim | ||
import time | ||
|
||
client = airsim.MultirotorClient() | ||
client.confirmConnection() | ||
|
||
pose = client.simGetVehiclePose() | ||
|
||
# teleport the drone + 10 meters in x-direction | ||
pose.position.x_val += 10 | ||
|
||
client.simSetVehiclePose(pose, True, "PX4") | ||
|
||
time.sleep(2) | ||
|
||
# teleport the drone back | ||
pose.position.x_val -= 10 | ||
|
||
client.simSetVehiclePose(pose, True, "PX4") |
what is setup_path here ??