forked from kirillin/tello_driver
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Anqi Xu
committed
Sep 24, 2018
1 parent
9a3d50c
commit aba20f4
Showing
9 changed files
with
82 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<launch> | ||
<arg name="tello_ip" default="192.168.10.1" /> | ||
<!-- arg name="tello_ip" default="172.17.0.2" / --> | ||
<arg name="tello_cmd_port" default="8889" /> | ||
<arg name="client_port" default="8890" /> | ||
<arg name="tello_cmd_server_port" default="8889" /> | ||
<arg name="local_cmd_client_port" default="8890" /> | ||
<arg name="local_vid_server_port" default="6038" /> | ||
<arg name="namespace" default="tello" /> | ||
|
||
<group ns="$(arg namespace)"> | ||
<node pkg="tello_driver" name="tello" type="tello_driver_node.py" output="screen"> | ||
<param name="client_port" value="$(arg client_port)" /> | ||
<param name="local_cmd_client_port" value="$(arg local_cmd_client_port)" /> | ||
<param name="local_vid_server_port" value="$(arg local_vid_server_port)" /> | ||
<param name="tello_ip" value="$(arg tello_ip)" /> | ||
<param name="tello_cmd_port" value="$(arg tello_cmd_port)" /> | ||
<param name="tello_cmd_server_port" value="$(arg tello_cmd_server_port)" /> | ||
<param name="connect_timeout_sec" value="10.0" /> | ||
</node> | ||
|
||
<node pkg="image_transport" name="image_compressed" type="republish" args="raw in:=image_raw compressed out:=image_raw" /> | ||
</group> | ||
</launch> | ||
</launch> |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env python | ||
|
||
# Script to parse output from `iw dev`, and returns the physical device | ||
# listed above an user-specified wifi network device | ||
|
||
import os | ||
import sys | ||
|
||
if len(sys.argv) < 2: | ||
sys.stderr.write('Usage: %s <WIFI_DEV>\n' % sys.argv[0]) | ||
sys.exit(1) | ||
|
||
wifi_dev = sys.argv[1] | ||
phyid = None | ||
for line in os.popen('iw dev').readlines(): | ||
if len(line) <= 0: | ||
continue | ||
elif line.find('phy#') == 0: | ||
phyid = 'phy'+line.strip()[4:] | ||
elif line.find(wifi_dev) > 0: | ||
print(phyid) | ||
sys.exit(0) | ||
print('') | ||
sys.exit(1) |
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