-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/uf-mil/mil into daniel-na…
…vigation-mission
- Loading branch information
Showing
38 changed files
with
938 additions
and
240 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
42 changes: 42 additions & 0 deletions
42
NaviGator/mission_control/navigator_launch/config/bounds_sarasota_a.yaml
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,42 @@ | ||
--- | ||
!!python/object/new:dynamic_reconfigure.encoding.Config | ||
dictitems: | ||
frame: ecef | ||
groups: !!python/object/new:dynamic_reconfigure.encoding.Config | ||
dictitems: | ||
frame: ecef | ||
groups: !!python/object/new:dynamic_reconfigure.encoding.Config | ||
state: [] | ||
id: 0 | ||
name: Default | ||
parameters: !!python/object/new:dynamic_reconfigure.encoding.Config | ||
state: [] | ||
parent: 0 | ||
state: true | ||
type: '' | ||
x1: 744450.0 | ||
x2: 744336.0 | ||
x3: 744342.0 | ||
x4: 744456.0 | ||
y1: -5618775.0 | ||
y2: -5618790.0 | ||
y3: -5618835.0 | ||
y4: -5618820.0 | ||
z1: 2915236.0 | ||
z2: 2915236.0 | ||
z3: 2915150.0 | ||
z4: 2915150.0 | ||
state: [] | ||
x1: 744450.0 | ||
x2: 744336.0 | ||
x3: 744342.0 | ||
x4: 744456.0 | ||
y1: -5618775.0 | ||
y2: -5618790.0 | ||
y3: -5618835.0 | ||
y4: -5618820.0 | ||
z1: 2915236.0 | ||
z2: 2915236.0 | ||
z3: 2915150.0 | ||
z4: 2915150.0 | ||
state: [] |
42 changes: 42 additions & 0 deletions
42
NaviGator/mission_control/navigator_launch/config/bounds_sarasota_b.yaml
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,42 @@ | ||
--- | ||
!!python/object/new:dynamic_reconfigure.encoding.Config | ||
dictitems: | ||
frame: ecef | ||
groups: !!python/object/new:dynamic_reconfigure.encoding.Config | ||
dictitems: | ||
frame: ecef | ||
groups: !!python/object/new:dynamic_reconfigure.encoding.Config | ||
state: [] | ||
id: 0 | ||
name: Default | ||
parameters: !!python/object/new:dynamic_reconfigure.encoding.Config | ||
state: [] | ||
parent: 0 | ||
state: true | ||
type: '' | ||
x1: 744456.0 | ||
x2: 744342.0 | ||
x3: 744348.0 | ||
x4: 744463.0 | ||
y1: -5618820.0 | ||
y2: -5618835.0 | ||
y3: -5618885.0 | ||
y4: -5618870.0 | ||
z1: 2915149.0 | ||
z2: 2915149.0 | ||
z3: 2915052.0 | ||
z4: 2915052.0 | ||
state: [] | ||
x1: 744456.0 | ||
x2: 744342.0 | ||
x3: 744348.0 | ||
x4: 744463.0 | ||
y1: -5618820.0 | ||
y2: -5618835.0 | ||
y3: -5618885.0 | ||
y4: -5618870.0 | ||
z1: 2915149.0 | ||
z2: 2915149.0 | ||
z3: 2915052.0 | ||
z4: 2915052.0 | ||
state: [] |
42 changes: 42 additions & 0 deletions
42
NaviGator/mission_control/navigator_launch/config/bounds_sarasota_c.yaml
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,42 @@ | ||
--- | ||
!!python/object/new:dynamic_reconfigure.encoding.Config | ||
dictitems: | ||
frame: ecef | ||
groups: !!python/object/new:dynamic_reconfigure.encoding.Config | ||
dictitems: | ||
frame: ecef | ||
groups: !!python/object/new:dynamic_reconfigure.encoding.Config | ||
state: [] | ||
id: 0 | ||
name: Default | ||
parameters: !!python/object/new:dynamic_reconfigure.encoding.Config | ||
state: [] | ||
parent: 0 | ||
state: true | ||
type: '' | ||
x1: 744463.0 | ||
x2: 744349.0 | ||
x3: 744354.0 | ||
x4: 744468.0 | ||
y1: -5618871.0 | ||
y2: -5618886.0 | ||
y3: -5618926.0 | ||
y4: -5618911.0 | ||
z1: 2915050.0 | ||
z2: 2915050.0 | ||
z3: 2914972.0 | ||
z4: 2914972.0 | ||
state: [] | ||
x1: 744463.0 | ||
x2: 744349.0 | ||
x3: 744354.0 | ||
x4: 744468.0 | ||
y1: -5618871.0 | ||
y2: -5618886.0 | ||
y3: -5618926.0 | ||
y4: -5618911.0 | ||
z1: 2915050.0 | ||
z2: 2915050.0 | ||
z3: 2914972.0 | ||
z4: 2914972.0 | ||
state: [] |
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
15 changes: 10 additions & 5 deletions
15
NaviGator/mission_control/navigator_launch/launch/shore.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
<launch> | ||
<!-- Run Joystick --> | ||
<include file="$(find navigator_launch)/launch/shore/xbox_controller.launch" /> | ||
<arg name="wireless" default="False" /> | ||
<arg name="device_input" default="/dev/input/js0" unless="$(arg wireless)"/> | ||
|
||
<node name="network_heartbeat" pkg="mil_tools" type="network_broadcaster.py" output="screen" /> | ||
<!-- Run Joystick --> | ||
<include file="$(find navigator_launch)/launch/shore/xbox_controller.launch"> | ||
<arg name="device_input" value="$(arg device_input)"/> | ||
</include> | ||
|
||
<!-- Host Monitoring --> | ||
<node name="host_monitor" pkg="navigator_gui" type="host_monitor.py"/> | ||
<node name="network_heartbeat" pkg="mil_tools" type="network_broadcaster.py" output="screen" /> | ||
|
||
<!-- Host Monitoring --> | ||
<node name="host_monitor" pkg="navigator_gui" type="host_monitor.py"/> | ||
</launch> |
2 changes: 1 addition & 1 deletion
2
NaviGator/mission_control/navigator_launch/launch/shore/xbox_controller.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
1 change: 1 addition & 0 deletions
1
NaviGator/mission_control/navigator_missions/navigator_missions/__init__.py
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
44 changes: 44 additions & 0 deletions
44
NaviGator/mission_control/navigator_missions/navigator_missions/autonomous_2024.py
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,44 @@ | ||
from __future__ import annotations | ||
|
||
import asyncio | ||
|
||
import rospy | ||
|
||
from .docking import Docking | ||
from .entrance_gate2 import EntranceGate2 | ||
from .navigation import Navigation | ||
from .navigator import NaviGatorMission | ||
from .scan_the_code import ScanTheCodeMission | ||
from .wildlife import Wildlife | ||
|
||
|
||
class Autonomous2024(NaviGatorMission): | ||
|
||
# timeout (in secs) | ||
TIMEOUT = 180 | ||
|
||
async def run_mission(self, mission_cls: type[NaviGatorMission], name: str): | ||
rospy.loginfo(f"[autonomous] beginning {name}...") | ||
try: | ||
await asyncio.wait_for(mission_cls().run(""), self.TIMEOUT) | ||
except asyncio.TimeoutError: | ||
rospy.logwarn(f"[autonomous] ran out of time on {name}!") | ||
|
||
async def run(self, args: str): | ||
# Step 1: Entrance and exit gates | ||
await self.run_mission(EntranceGate2, "entrance gate") | ||
|
||
# Step 2: Scan the Code | ||
await self.run_mission(ScanTheCodeMission, "scan the code") | ||
|
||
# Step 3: Wildlife Mission | ||
await self.run_mission(Wildlife, "wildlife") | ||
|
||
# Step 4: Navigation Mission | ||
await self.run_mission(Navigation, "navigation") | ||
|
||
# Step 5: Dock Mission | ||
await self.run_mission(Docking, "docking") | ||
|
||
# Step 6: UAV Mission | ||
pass |
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,25 @@ | ||
#!/bin/bash | ||
if tmux has-session -t auto; then | ||
tmux a -t auto | ||
else | ||
# First window (panes) | ||
tmux new-session -d -s auto | ||
tmux send-keys -t auto:0.0 'roslaunch navigator_launch master.launch --screen' Enter | ||
tmux split-window -h -t auto | ||
tmux split-window -v -t auto | ||
|
||
# Second window (alarms, other panes) | ||
sleep 1.5 | ||
tmux new-window -t auto | ||
tmux split-window -h -t auto:1 | ||
tmux split-window -v -t auto:1 | ||
tmux split-window -v -t auto:1.0 | ||
tmux send-keys 'amonitor kill' Enter | ||
tmux split-window -h | ||
tmux send-keys 'amonitor hw-kill' Enter | ||
tmux select-pane -t auto:1.0 | ||
|
||
# Return to the first window | ||
tmux select-window -t auto:0 | ||
tmux a -t auto | ||
fi |
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,4 +1,5 @@ | ||
string color # color of docking bay R, G, B | ||
string color # color of docking bay to park in ('R' for example) | ||
int8 ams_status # 1=docking, 2=complete | ||
string status_of_delivery # S = 'scanning', D = 'delivering' | ||
--- | ||
string message |
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,3 +1,4 @@ | ||
string entry_color # color of the entry buoy ('R' for example) | ||
int8 finished # 1=in progress 2=completed | ||
--- | ||
string message |
This file was deleted.
Oops, something went wrong.
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,4 +1,5 @@ | ||
int8 uav_status # 1=stowed, 2=deployed, 3=faulted | ||
int8 item_status # 0=not picked up, 1=picked up, 2=delivered | ||
string item_color # color of the item ('R' for example) | ||
--- | ||
string message |
12 changes: 3 additions & 9 deletions
12
NaviGator/utils/navigator_msgs/srv/MessageUAVSearchReport.srv
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,13 +1,7 @@ | ||
string object1 | ||
float64 object1_latitude | ||
string object1_n_s | ||
float64 object1_longitude | ||
string object1_e_w | ||
string object1 # 'R' for the R pad, 'N' for the N pad | ||
geographic_msgs/GeoPoint object1_location | ||
string object2 | ||
float64 object2_latitude | ||
string object2_n_s | ||
float64 object2_longitude | ||
string object2_e_w | ||
geographic_msgs/GeoPoint object2_location | ||
int8 uav_status # 1=manual, 2=autonomous, 3=faulted | ||
--- | ||
string message |
5 changes: 5 additions & 0 deletions
5
NaviGator/utils/navigator_msgs/srv/MessageWildlifeEncounter.srv
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,5 @@ | ||
string circling_wildlife # which animal to circle ('P' for example (python)) | ||
bool clockwise # whether to circle clockwise or counter-clockwise | ||
int8 number_of_circles # how many circles to do | ||
--- | ||
string message |
Oops, something went wrong.