-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
12 changed files
with
48 additions
and
27 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 |
---|---|---|
@@ -1,19 +1,31 @@ | ||
import click | ||
from dronecontrol.hands import mapper, graphics | ||
from dronecontrol.follow import start | ||
|
||
from dronecontrol import mapper | ||
from dronecontrol import graphics | ||
|
||
@click.group() | ||
def main(): | ||
pass | ||
|
||
@click.command() | ||
def hand(): | ||
mapper.main() | ||
@main.command() | ||
@click.option("-p", "--port", type=int, help="port for UDP connections") | ||
@click.option("--udp", "serial", flag_value=False, default=True, help="connect to drone system through UDP, default address is localhost") | ||
@click.option("--serial", "serial", flag_value=True, help="connect to drone system through serial, default device is ttyUSB0") | ||
def hand(port, serial): | ||
mapper.main(port, serial) | ||
|
||
@click.command() | ||
@main.command() | ||
def follow(): | ||
start.main() | ||
|
||
@main.group() | ||
def utils(): | ||
pass | ||
|
||
@utils.command() | ||
def take_image(): | ||
graphics.take_images() | ||
|
||
main.add_command(hand) | ||
main.add_command(take_image) | ||
@utils.command() | ||
def take_video(): | ||
graphics.take_video() |
Empty file.
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,2 @@ | ||
def main(): | ||
print("Follow!") |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ DONT_RUN=1 make px4_sitl_default none_iris | |
|
||
# WSL | ||
# export PX4_SIM_HOST_ADDR=172.25.48.1 | ||
# pip install -e . |
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