-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* double fixed build.cmd * Created API for running console commands. Unreal has many useful console commands, and user can create their own in the level blueprint. * Delete AirSim.props * Added docstring and example script. * add collision view to consol cmd script, move weather and markers to environment/ dir * bla * more collision cmds in example script * Added stub for new API in Unity. * fix typo in unity non impl * fix docstring syntax Co-authored-by: Nicholas Gyde <[email protected]> Co-authored-by: Ratnesh Madaan <[email protected]>
- Loading branch information
1 parent
045766d
commit 8d80ccd
Showing
14 changed files
with
86 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
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
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
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
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
File renamed without changes.
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,29 @@ | ||
import airsim | ||
import time | ||
|
||
def RunConsoleCmd(client, cmd): | ||
client.simRunConsoleCommand(cmd) | ||
print(f"Running Unreal Console cmd '{cmd}' and sleeping for 1 second") | ||
time.sleep(1.0) | ||
|
||
def RunCmdList(client): | ||
RunConsoleCmd(client, 'stat fps') | ||
RunConsoleCmd(client, 'stat unit') | ||
RunConsoleCmd(client, 'stat unitGraph') | ||
RunConsoleCmd(client, 'show COLLISION') | ||
RunConsoleCmd(client, 'show CollisionVisibility') | ||
RunConsoleCmd(client, 'stat game') | ||
RunConsoleCmd(client, 'show COLLISION') | ||
RunConsoleCmd(client, 'show CollisionVisibility') | ||
RunConsoleCmd(client, 'stat game') | ||
RunConsoleCmd(client, 'stat unitGraph') | ||
RunConsoleCmd(client, 'stat unit') | ||
RunConsoleCmd(client, 'stat fps') | ||
|
||
def main(): | ||
client = airsim.client.MultirotorClient() | ||
client.confirmConnection() | ||
RunCmdList(client) | ||
|
||
if __name__ == "__main__": | ||
main() |
File renamed without changes.
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
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
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
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
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
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