Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RoboSub 2024 #555

Merged
merged 401 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
401 commits
Select commit Hold shift + click to select a range
f2f8710
tet
maxwellmlin May 9, 2024
e647f51
Add color correction
May 10, 2024
2ea8d4d
rename
May 10, 2024
a89ac8d
rename
maxwellmlin May 10, 2024
fa9f57c
Add credit
maxwellmlin May 10, 2024
6a21210
remove comment
maxwellmlin May 10, 2024
0907f6d
Lint
maxwellmlin May 10, 2024
5bd620f
Color correction
maxwellmlin May 10, 2024
fd2d6c9
6 shaves
May 10, 2024
15433b5
revert
May 10, 2024
e733170
fix
May 11, 2024
aa2a273
always queue rgb
maxwellmlin May 11, 2024
63a2b77
color correct
maxwellmlin May 11, 2024
5e0782b
Add arg
maxwellmlin May 11, 2024
0bf0812
Add arg
maxwellmlin May 11, 2024
1f01b56
lint
maxwellmlin May 11, 2024
d580e61
remove loginfo
maxwellmlin May 11, 2024
f9778bf
🙃
maxwellmlin May 11, 2024
91ecbb7
Merge branch 'sonar-1d' into pool-test-june-13
duke-robotics Jun 13, 2024
bf65cd9
Merge remote-tracking branch 'origin/sensor-fusion' into pool-test-ju…
duke-robotics Jun 13, 2024
550aa55
Merge branch 'torpedo-arduino' into pool-test-june-13
duke-robotics Jun 13, 2024
6a52489
Merge remote-tracking branch 'origin/color-correction' into pool-test…
duke-robotics Jun 13, 2024
cccd79a
Merged coroutine-demo
duke-robotics Jun 13, 2024
ffc8afe
Merge branch 'pid-updates' into pool-test-june-13
duke-robotics Jun 13, 2024
74a59b4
Tuned static power global
duke-robotics Jun 14, 2024
63f8350
Added RectInfo.msg
duke-robotics Jun 15, 2024
d744fdf
Tuned static power global
duke-robotics Jun 15, 2024
1a71b16
Switched usb_camera to bottom
duke-robotics Jun 15, 2024
e06a387
Added blue rectangle detector
duke-robotics Jun 15, 2024
077aca2
Added blue rectangle detector to sensors.launch
duke-robotics Jun 15, 2024
e3277ad
Fixed move_to_cv_obj
duke-robotics Jun 15, 2024
0340e03
Added blue rectangle to CV interface
duke-robotics Jun 15, 2024
578e047
Modified prequal task code
duke-robotics Jun 15, 2024
fd54666
Added prequal task to task runner
duke-robotics Jun 15, 2024
7803ca8
Deleted rospy.loginfo statements from blue rectangle detector
duke-robotics Jun 16, 2024
a4fa8f6
Added rect info subscriber to cv interface
duke-robotics Jun 16, 2024
1ccc178
Modified prequal code
duke-robotics Jun 16, 2024
a7fda56
Decreased angular tolerance
duke-robotics Jun 22, 2024
8c97477
Added depth to state interface
duke-robotics Jun 22, 2024
cb6c427
Added blue rect touching top and touching bottom and outlier filterin…
duke-robotics Jun 22, 2024
0354d77
Updated prequal task
duke-robotics Jun 22, 2024
d3342e5
Improved code to compute blue rectangle angle
duke-robotics Jun 22, 2024
d9cf0d3
Final prequal code
duke-robotics Jun 22, 2024
eb63851
Added enable controls to controls interface
duke-robotics Jun 22, 2024
ad83aef
Removed outlier filtering from blue rectangle in cv interface and add…
duke-robotics Jun 22, 2024
4835f1b
Add maxsize and blocking
Jun 23, 2024
60e5711
Added gate style task
duke-robotics Jun 28, 2024
666cbba
First draft of buoy detector with conotour matching
duke-robotics Jun 29, 2024
9ef33e8
Changed usb camera channel back to 0
duke-robotics Jun 29, 2024
ecdca0e
Completed barrel roll task
duke-robotics Jun 29, 2024
5b773c3
Removed unnecessary code
duke-robotics Jun 29, 2024
69660b3
Added IMU to state interface
duke-robotics Jun 29, 2024
63f537c
Added HSV filtering to buoy detector
duke-robotics Jun 30, 2024
297cea4
Improved buoy detector
duke-robotics Jun 30, 2024
f489b4a
Added bbox filtering
duke-robotics Jun 30, 2024
69f0f7e
Completed buoy detector
duke-robotics Jun 30, 2024
e897717
Buoy contour image
duke-robotics Jun 30, 2024
ae721c8
Removed print
duke-robotics Jun 30, 2024
71ae862
Added buoy detector to sensors.launch
duke-robotics Jun 30, 2024
3ffa13a
First draft of buoy task
duke-robotics Jun 30, 2024
9ffc887
Added buoy to cv interface
duke-robotics Jun 30, 2024
d8a569a
Switched task runner to buoy task
duke-robotics Jun 30, 2024
5fe0c65
Added bbox related things to geometry_utils
duke-robotics Jun 30, 2024
b0d292b
launch arg
mbryant2025 Jul 9, 2024
e15281c
compile serial
mbryant2025 Jul 10, 2024
2d1a296
refactor to use open/close
mbryant2025 Jul 10, 2024
daae898
removed ros layer
mbryant2025 Jul 10, 2024
82c4787
refactored arduino, launch
mbryant2025 Jul 11, 2024
9efc070
constant message length
mbryant2025 Jul 11, 2024
403d740
updated docs, adds serial.launch alias
mbryant2025 Jul 11, 2024
851557d
Tightened HSV values for buoy detector and commented out filtering code
duke-robotics Jul 12, 2024
dc17ff0
Completed buoy task
duke-robotics Jul 12, 2024
c8d2cef
Copy models
maxwellmlin Jul 13, 2024
cdbf330
Add ros-yolov7
maxwellmlin Jul 13, 2024
c12ae99
Add ros-image-transport
maxwellmlin Jul 13, 2024
6cc7725
Patch bugs in ros-yolov7
maxwellmlin Jul 13, 2024
63ae7dd
Add ros-yolov7 deps
maxwellmlin Jul 13, 2024
f6e2742
Add weights and labels
maxwellmlin Jul 13, 2024
ac58994
Color based on class
maxwellmlin Jul 13, 2024
a2b0cec
Add paths and tweak params
maxwellmlin Jul 13, 2024
4b3df47
Upload best.pt
maxwellmlin Jul 13, 2024
593db72
Merge branch 'serial-thrusters' into pool-test-july-13
duke-robotics Jul 13, 2024
79f5b4b
Merge branch 'ros-yolo' into pool-test-july-13
duke-robotics Jul 13, 2024
393d542
Changed cuda to cpu for yolov7
duke-robotics Jul 13, 2024
278e081
Increased yolov7 confidence threshold to 0.90
duke-robotics Jul 13, 2024
f482e2e
Corrected yolov7 labels order
duke-robotics Jul 13, 2024
ccfdff3
Reversed channel order in np_img_orig in yolov7
duke-robotics Jul 13, 2024
2e1de5e
Tuned PID
duke-robotics Jul 13, 2024
69755e9
Increased angular tolerance
duke-robotics Jul 13, 2024
8b58937
Added orig IMU to state interface
duke-robotics Jul 13, 2024
7c4ff29
Added gate detections to cv interface
duke-robotics Jul 13, 2024
0de962e
Added initial submerge, coin flip, and gate task to task runner with …
duke-robotics Jul 13, 2024
8e85e75
Added initial submerge, coin flip, and gate task
duke-robotics Jul 13, 2024
6e0c008
Tuned static power
duke-robotics Jul 14, 2024
85150ee
Separated angular tolerance into roll, pitch, yaw tolerances
duke-robotics Jul 14, 2024
3a36019
Added orig_state to state interface
duke-robotics Jul 14, 2024
5e88926
Updated CV with accurate gate image height and to use only object wid…
duke-robotics Jul 14, 2024
eeda914
Added coin flip and gate style task to task runner
duke-robotics Jul 14, 2024
d5f4e9f
Added keep_level to move to pos local
duke-robotics Jul 14, 2024
4147a5a
Updates to gate tasks
duke-robotics Jul 14, 2024
9d1cba0
Updated thruster arduino config
duke-robotics Jul 18, 2024
1dde0da
Merge branch 'color-correction' into pool-test-july-18
duke-robotics Jul 18, 2024
5881cb0
Removed stereo vision from spatial detection to improve detection rate
Jul 20, 2024
59af1f6
Merge branch 'color-correction' into pool-test-july-20
duke-robotics Jul 20, 2024
74ec1b7
Spatial detection fov increase, color fixes, switched to gate model
duke-robotics Jul 20, 2024
b88d3c8
add 5 and 10 shave count
Jul 20, 2024
357d044
Reverted to ROS thrusters, added xyz calculation in depthai spatial d…
duke-robotics Jul 20, 2024
ff68fd6
Switched gate model to 5 shave
duke-robotics Jul 21, 2024
f3d3184
Improved buoy detections
duke-robotics Jul 21, 2024
b0f963b
Fixed depthai camera connect
duke-robotics Jul 21, 2024
18f99d3
Publish rgb detections after filtering them
duke-robotics Jul 21, 2024
2eb288b
Increase pitch tolerance to 0.2
duke-robotics Jul 21, 2024
65d6687
Added buoy distance computation
duke-robotics Jul 21, 2024
cb05577
Added buoy task to task runner
duke-robotics Jul 21, 2024
df70c26
Comp tasks updates
duke-robotics Jul 21, 2024
3f5b5ee
Refactoring started
vedarshshah Aug 4, 2024
bc20456
continue reading from USB camera upon failure
viethungle-vt1401 Aug 4, 2024
2a359c8
Refactoring 2
vedarshshah Aug 4, 2024
0016e29
Merge branch 'comp-2024' of github.com:DukeRobotics/robosub-ros into …
vedarshshah Aug 4, 2024
f4fd84a
launch files
viethungle-vt1401 Aug 4, 2024
e80b96e
clean up from refactoring
viethungle-vt1401 Aug 4, 2024
bdc81fb
Implement yaw_to_cv_object
maxwellmlin Aug 4, 2024
4ba4ba9
feat(yaw_to_cv_object): rotate if no new cv detections
maxwellmlin Aug 5, 2024
fdb7dff
Vedarsh's changes. Committing before starting 8/4 night pool test.
duke-robotics Aug 5, 2024
ec3c8fb
Merge
duke-robotics Aug 5, 2024
575a757
USB camera
viethungle-vt1401 Aug 5, 2024
8cc4407
Checkout enable_recording node from pool-test-apr-27
Aug 5, 2024
9c8357f
fix: use -l instead of -p (mac bug)
maxwellmlin Aug 5, 2024
98781bf
Update pool-test.sh
Aug 5, 2024
04a7913
most maximum efficiency tmux script
maxwellmlin Aug 5, 2024
5a82063
Progress with bin detector
viethungle-vt1401 Aug 5, 2024
9cc23d5
Bin task first try
viethungle-vt1401 Aug 5, 2024
716c8fe
blue bin hsv vals attempt 1
nathanaelren Aug 5, 2024
e5f0f08
changes
ChuChuCodes0414 Aug 5, 2024
10000fd
Revert "blue bin hsv vals attempt 1"
nathanaelren Aug 5, 2024
b1c73d2
Merge branch 'bin-task' of github.com:DukeRobotics/robosub-ros into b…
ChuChuCodes0414 Aug 5, 2024
6a745df
Delete docker pool test since pool test now runs docker container
Aug 5, 2024
fe5cad5
Bin task v1
viethungle-vt1401 Aug 5, 2024
c431d56
Don't automatically start fg-ws
Aug 5, 2024
8ecb17a
Merge branch 'bin-task' into comp-2024
viethungle-vt1401 Aug 5, 2024
ad52f98
minor
viethungle-vt1401 Aug 5, 2024
6d48c45
launch files
viethungle-vt1401 Aug 4, 2024
17b1efc
clean up from refactoring
viethungle-vt1401 Aug 4, 2024
e0f533f
USB camera
viethungle-vt1401 Aug 5, 2024
1e20ed8
Progress with bin detector
viethungle-vt1401 Aug 5, 2024
8e39fb9
changes
ChuChuCodes0414 Aug 5, 2024
5b175d5
Bin task first try
viethungle-vt1401 Aug 5, 2024
153391e
blue bin hsv vals attempt 1
nathanaelren Aug 5, 2024
c1957ff
Revert "blue bin hsv vals attempt 1"
nathanaelren Aug 5, 2024
b4d12ab
Bin task v1
viethungle-vt1401 Aug 5, 2024
c6f6dd8
minor
viethungle-vt1401 Aug 5, 2024
ad3d392
8/5 changes
duke-robotics Aug 5, 2024
50a8c2f
Merge branch 'comp-2024' of github.com:DukeRobotics/robosub-ros into …
duke-robotics Aug 5, 2024
47ddc15
Merge branch 'master' into comp-2024
duke-robotics Aug 6, 2024
abdadf5
Hung's usb camera changes
duke-robotics Aug 6, 2024
14c9aae
Co-authored-by: Nathanael Ren <[email protected]>
ChuChuCodes0414 Aug 6, 2024
4b3653a
Merge branch 'comp-2024' into bin-task
ChuChuCodes0414 Aug 6, 2024
b818d13
Git corruption recovery
duke-robotics Aug 6, 2024
0026df6
initial refactoring of bins task
ChuChuCodes0414 Aug 6, 2024
4852b78
new values for colors
ChuChuCodes0414 Aug 6, 2024
4e9b44d
Merge branch 'bin-task' into comp-2024
duke-robotics Aug 6, 2024
35336d5
Bin testing
duke-robotics Aug 6, 2024
e151ad9
Increase t tuning
duke-robotics Aug 6, 2024
f390713
Revert gate_style_task
duke-robotics Aug 6, 2024
cce941c
Remove color correction from depthai_simulate_detection
maxwellmlin Aug 6, 2024
a666616
Merge remote-tracking branch 'refs/remotes/origin/comp-2024' into com…
maxwellmlin Aug 6, 2024
b2abfbc
Copy depthai_spatial_detection
maxwellmlin Aug 6, 2024
0d9d03c
Add focal_length, sensor_size, and img_size to usb_cameras constants
maxwellmlin Aug 6, 2024
0e3439c
depthai_mono_detection runs spatial detection on the front mono camer…
maxwellmlin Aug 6, 2024
b9ddb94
Add launch file (TODO:need to add default arg to feed_path)
maxwellmlin Aug 6, 2024
5bdaed2
Changes from 8/6 morning practice run
duke-robotics Aug 6, 2024
18d749d
Merge branch 'comp-2024' of github.com:DukeRobotics/robosub-ros into …
duke-robotics Aug 6, 2024
dc91655
Use front camera as default in depthai_mono_detection
duke-robotics Aug 6, 2024
d0708ae
Add comp-wifi special subcommand, 2nd arg specifies SSH address
maxwellmlin Aug 6, 2024
d4104ff
Added udev rules for usb cameras and updated usb camera scripts to us…
duke-robotics Aug 6, 2024
d3555ed
path marker detector
viethungle-vt1401 Aug 6, 2024
0d19d6d
yaw calculation, hsv filter adjustments
ChuChuCodes0414 Aug 6, 2024
5fe1a44
change cam topic
ChuChuCodes0414 Aug 6, 2024
9e4eb0d
Merge branch 'path-marker' into comp-2024
duke-robotics Aug 6, 2024
835b4c1
added area filtering
nathanaelren Aug 6, 2024
c2720ff
Fix bugs in depthai_mono_detection
duke-robotics Aug 6, 2024
d8d3b7b
Changes before 3rd practice run 8/6
duke-robotics Aug 6, 2024
dcec28c
Make bagfile dir if not exists already
duke-robotics Aug 6, 2024
85dd758
fix
duke-robotics Aug 6, 2024
3712367
Co-authored-by: Nathanael Ren <[email protected]>
ChuChuCodes0414 Aug 6, 2024
32e360a
Decrease buoy detection size threshold
duke-robotics Aug 6, 2024
82e0773
value adjustments wrt 17.85gb Woollett bag file
nathanaelren Aug 6, 2024
49a4a1c
wip but idk if it works?
nathanaelren Aug 6, 2024
d464db1
Merge branch 'bin-task' into comp-2024
nathanaelren Aug 7, 2024
a6e1c85
Merge branch 'path-marker' into comp-2024
nathanaelren Aug 7, 2024
252a50b
Always kill docker first
duke-robotics Aug 7, 2024
3fea8c8
Remove depthai_mono_detection from sensors.launch. MUST BE LAUNCHED S…
duke-robotics Aug 7, 2024
a590736
Add mono dai script separately
maxwellmlin Aug 7, 2024
ac44632
Merge remote-tracking branch 'refs/remotes/origin/comp-2024' into com…
maxwellmlin Aug 7, 2024
2c494ac
Add new extra panel
maxwellmlin Aug 7, 2024
2c8ae40
hung change
duke-robotics Aug 7, 2024
6bdb2a9
Merge branch 'comp-2024' of github.com:DukeRobotics/robosub-ros into …
duke-robotics Aug 7, 2024
a816007
init commit
duke-robotics Aug 7, 2024
e5119f1
Tmux from inside robot now
duke-robotics Aug 7, 2024
a54d13d
Deleted unnecessary function and increased tolerances
duke-robotics Aug 7, 2024
c3bf10c
Added path marker to cv interface
duke-robotics Aug 7, 2024
3ce4232
Use 1/0 instead of True/False
duke-robotics Aug 7, 2024
907e1b0
Lowered buoy area threshold
duke-robotics Aug 7, 2024
20927e5
pool test aug 7 night -- ask michael
duke-robotics Aug 8, 2024
3ef3f7b
Added pink bins detector
vedarshshah Aug 8, 2024
b9100fe
Various changes
duke-robotics Aug 8, 2024
beeb921
Octagon first draft
viethungle-vt1401 Aug 8, 2024
c3c9871
Pink bins detector and octagon task improvements
vedarshshah Aug 8, 2024
c278713
remove error message from ping1d
duke-robotics Aug 8, 2024
1efebaf
bug fix
viethungle-vt1401 Aug 8, 2024
85183c7
contour score threshold
viethungle-vt1401 Aug 8, 2024
4c8a9f9
decreased yaw tolerance to 0.10
duke-robotics Aug 9, 2024
0df8f0f
new path marker and modified bin algorithm (yaw at higher height)
duke-robotics Aug 9, 2024
dded07c
launch two pink bin camera nodes
duke-robotics Aug 9, 2024
4e0bb15
added loginfo to USB camera fail
duke-robotics Aug 9, 2024
09f00eb
crucial bin detection bug fix
duke-robotics Aug 9, 2024
220b50a
i don't know how to name this commit
duke-robotics Aug 9, 2024
48ffadf
Merge branch 'comp-2024' of github.com:DukeRobotics/robosub-ros into …
duke-robotics Aug 9, 2024
5e41bcb
committing to current bins
duke-robotics Aug 9, 2024
0beed93
start fg-ws
duke-robotics Aug 9, 2024
692430b
comp.sh is UNTETHERED -- test.sh is TETHERED
duke-robotics Aug 9, 2024
e311fad
Added camera based pink bins masks
duke-robotics Aug 9, 2024
47a4674
Added untethered capability to task runner
duke-robotics Aug 9, 2024
63f8c04
Changed octagon task
duke-robotics Aug 9, 2024
09aebe6
8/10 morning
duke-robotics Aug 10, 2024
4bf9705
Final code changes for third chance
duke-robotics Aug 11, 2024
7d74a5c
Last minute changes for third chance
duke-robotics Aug 11, 2024
f06b2f0
final commit to comp-2024
duke-robotics Aug 31, 2024
7c44a23
Nathanael + Mathew commenting in cv package
nathanaelren Aug 31, 2024
0eb48e8
Merge branch 'comp-2024' into comp-2024-refactor
maxwellmlin Aug 31, 2024
5da2ae0
Nathanael + Mathew commenting v2 cv package
nathanaelren Aug 31, 2024
a83c794
Merge branch 'comp-2024-refactor' of github.com:DukeRobotics/robosub-…
nathanaelren Aug 31, 2024
b4d9b20
Fix doc
maxwellmlin Aug 31, 2024
c5d5552
Merge remote-tracking branch 'refs/remotes/origin/comp-2024-refactor'…
maxwellmlin Aug 31, 2024
c67fc17
Delete unused depthai models
maxwellmlin Aug 31, 2024
e8c3bfa
Revert correct.py params
maxwellmlin Aug 31, 2024
94e9866
Remove pool-test-legacy
maxwellmlin Aug 31, 2024
b0cc941
Delete commented code
maxwellmlin Aug 31, 2024
6b6caec
Remove unused packages
maxwellmlin Aug 31, 2024
0729c82
Update docs
maxwellmlin Aug 31, 2024
2b7edfa
Add comment
maxwellmlin Aug 31, 2024
5c2a540
Clean up depthai_mono_detection
maxwellmlin Aug 31, 2024
6311399
Clean up depthai_spatial_detection
maxwellmlin Aug 31, 2024
062c7db
Fix flake8 problems
maxwellmlin Aug 31, 2024
68050cf
Add record_bag.launch to blocklist
maxwellmlin Sep 7, 2024
0e80e9a
Delete depthai_save_video.launch
maxwellmlin Sep 7, 2024
bffdac5
Exclude system_utils.launch
maxwellmlin Sep 7, 2024
d2517ca
Removed sonar code to save files
maxwellmlin Sep 7, 2024
ff3fc23
Comments for future task planning refactoring
viethungle-vt1401 Sep 7, 2024
906453a
lint
viethungle-vt1401 Sep 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/catkin_ws/src/custom_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ add_message_files(
PIDInfo.msg
PIDTerms.msg
PWMAllocs.msg
RectInfo.msg
RemoteLaunchInfo.msg
RunningNode.msg
ServoAngleArray.msg
Expand All @@ -30,6 +31,7 @@ add_message_files(
SonarSweepRequest.msg
SonarSweepResponse.msg
SystemUsage.msg
TaskUpdate.msg
ThrusterAllocs.msg
)

Expand Down
5 changes: 5 additions & 0 deletions core/catkin_ws/src/custom_msgs/msg/RectInfo.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
float64 center_x
float64 center_y
float64 width
float64 height
float64 angle
19 changes: 19 additions & 0 deletions core/catkin_ws/src/custom_msgs/msg/TaskUpdate.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
std_msgs/Header header

uint64 id

uint64 parent_id

string name

uint8 INITIALIZED = 0
uint8 PAUSED = 1
uint8 RESUMED = 2
uint8 THREW = 3
uint8 RETURNED = 4
uint8 CLOSED = 5
uint8 DELETED = 6
uint8 ERRORED = 7
uint8 status

string data
35 changes: 16 additions & 19 deletions foxglove/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions onboard/catkin_ws/src/controls/config/oogway.yaml
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
pid:
position:
x:
Kp: 4
Kp: 1.8
Ki: 0
Kd: 5
Kd: 1.2
Ff: 0
control_effort:
min: -1
max: 1
derivative_type: 1
error_ramp_rate: 1000
y:
Kp: 3.5
Kp: 1.8
Ki: 0
Kd: 5
Kd: 1.2
Ff: 0
control_effort:
min: -1
max: 1
derivative_type: 1
error_ramp_rate: 1000
z:
Kp: 1
Kp: 1.9
Ki: 0
Kd: 1.5
Kd: 1.2
Ff: 0
control_effort:
min: -1
max: 1
derivative_type: 1
error_ramp_rate: 1000
roll:
Kp: 0.7
Kp: 0.2
Ki: 0
Kd: 0.5
Kd: 0.4
Ff: 0
control_effort:
min: -1
max: 1
derivative_type: 1
error_ramp_rate: 1000
pitch:
Kp: 0.7
Kp: 0.2
Ki: 0
Kd: 0.5
Kd: 0.4
Ff: 0
control_effort:
min: -1
max: 1
derivative_type: 1
error_ramp_rate: 1000
yaw:
Kp: 0.5
Kp: 0.2
Ki: 0
Kd: 1
Kd: 0.4
Ff: 0
control_effort:
min: -1
Expand Down Expand Up @@ -204,7 +204,7 @@ desired_power_limits:
static_power_global:
x: 0
y: 0
z: -0.19
z: -0.1625
power_scale_factor: 1
thrusters:
- name: bottom_front_left
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions onboard/catkin_ws/src/cv/configs/usb_cameras.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
front:
device_path: "/dev/video_front"
topic: "front"
focal_length: 2.65
sensor_size:
width: 3.054
height: 1.718
img_size:
width: 640
height: 480

bottom:
device_path: "/dev/video_bottom"
topic: "bottom"
focal_length: 2.65
sensor_size:
width: 3.054
height: 1.718
img_size:
width: 640
height: 480
3 changes: 3 additions & 0 deletions onboard/catkin_ws/src/cv/launch/bin_detector.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<launch>
<node name="bin_detector" pkg="cv" type="bin_detector.py" output="screen"/>
</launch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<launch>
<node name="blue_rectangle_detector" pkg="cv" type="blue_rectangle_detector.py" output="screen"/>
</launch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<launch>
<node name="buoy_detector_contour_matching" pkg="cv" type="buoy_detector_contour_matching.py" output="screen"/>
</launch>
25 changes: 25 additions & 0 deletions onboard/catkin_ws/src/cv/launch/depthai_mono_detection.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<launch>
<arg name="feed_path" default="/camera/usb/front/compressed" doc='{"type":"str","allowEmpty":false,"help":"Topic path to use as the simulated camera feed."}'/>
<arg name="model" default="2024_gate_glyphs" doc='{"options":["yolov7_tiny_2023_main","yolov8n_2023_main","gate_buoy","gate"],"allowEmpty":false,"help":"The DepthAI model to use from depthai_models.yaml"}'/>
<arg name="rgb_raw" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to publish the raw rgb stream (no detections)."}'/>
<arg name="rgb_detections" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to publish the rgb stream with detections overlaid."}'/>
<arg name="depth" default="False" doc='{"type":"bool","allowEmpty":false,"help":"Whether to publish the depth map."}'/>
<arg name="sync_nn" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to sync the RGB frames with the detections so the latest published detections correspond to the latest published RGB frame."}'/>
<arg name="using_sonar" default="False" doc='{"type":"bool","allowEmpty":false,"help":"Whether to use sonar to estimate depth instead of stereo."}'/>
<arg name="show_class_name" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to show the class name."}'/>
<arg name="show_confidence" default="True" doc='{"type":"bool","allowEmp
ty":false,"help":"Whether to show the confidence value."}'/>
<arg name="correct_color" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to apply underwater color correction."}'/>
<node name="depthai_mono_detection" pkg="cv" type="depthai_mono_detection.py" output="screen">
<param name="feed_path" value="$(arg feed_path)" />
<param name="model" value="$(arg model)" />
<param name="rgb_raw" value="$(arg rgb_raw)" />
<param name="rgb_detections" value="$(arg rgb_detections)" />
<param name="depth" value="$(arg depth)" />
<param name="sync_nn" value="$(arg sync_nn)" />
<param name="using_sonar" value="$(arg using_sonar)" />
<param name="show_class_name" value="$(arg show_class_name)" />
<param name="show_confidence" value="$(arg show_confidence)" />
<param name="correct_color" value="$(arg correct_color)" />
</node>
</launch>
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<launch>
<arg name="feed_path" default="" doc='{"type":"str","allowEmpty":false,"help":"The path to the still image or topic to use as the simulated camera feed."}'/>
<arg name="depthai_model_name" default="" doc='{"options":["yolov7_tiny_2023_main","yolov8n_2023_main","gate","gate_buoy"],"allowEmpty":false,"help":"The DepthAI model to use from depthai_models.yaml"}' />
<arg name="feed_path" default="/camera/usb/front/compressed" doc='{"type":"str","allowEmpty":false,"help":"The path to the still image or topic to use as the simulated camera feed."}'/>
<arg name="depthai_model_name" default="2024_gate_glyphs" doc='{"options":["yolov7_tiny_2023_main","yolov8n_2023_main","gate","gate_buoy"],"allowEmpty":false,"help":"The DepthAI model to use from depthai_models.yaml"}' />
<arg name="publishing_topic" default="/cv/depthai_sim/detections" doc='{"type":"str","allowEmpty":false,"help":"The topic to publish detections to."}'/>
<arg name="show_class_name" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to show the class name."}'/>
<arg name="show_confidence" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to show the confidence value."}'/>
<arg name="correct_color" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to apply underwater color correction."}'/>
<node name="depthai_simulate_detection" pkg="cv" type="depthai_simulate_detection.py" output="screen">
<param name="feed_path" value="$(arg feed_path)" />
<param name="depthai_model_name" value="$(arg depthai_model_name)" />
<param name="publishing_topic" value="$(arg publishing_topic)" />
<param name="show_class_name" value="$(arg show_class_name)" />
<param name="show_confidence" value="$(arg show_confidence)" />
<param name="correct_color" value="$(arg correct_color)" />
</node>
</launch>
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<launch>
<arg name="model" default="yolov7_tiny_2023_main" doc='{"options":["yolov7_tiny_2023_main","yolov8n_2023_main","gate_buoy","gate"],"allowEmpty":false,"help":"The DepthAI model to use from depthai_models.yaml"}'/>
<arg name="model" default="2024_gate_glyphs" doc='{"options":["yolov7_tiny_2023_main","yolov8n_2023_main","gate_buoy","gate"],"allowEmpty":false,"help":"The DepthAI model to use from depthai_models.yaml"}'/>
<arg name="rgb_raw" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to publish the raw rgb stream (no detections)."}'/>
<arg name="rgb_detections" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to publish the rgb stream with detections overlaid."}'/>
<arg name="depth" default="False" doc='{"type":"bool","allowEmpty":false,"help":"Whether to publish the depth map."}'/>
<arg name="sync_nn" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to sync the RGB frames with the detections so the latest published detections correspond to the latest published RGB frame."}'/>
<arg name="using_sonar" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to use sonar to estimate depth instead of stereo."}'/>
<arg name="using_sonar" default="False" doc='{"type":"bool","allowEmpty":false,"help":"Whether to use sonar to estimate depth instead of stereo."}'/>
<arg name="show_class_name" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to show the class name."}'/>
<arg name="show_confidence" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to show the confidence value."}'/>
<arg name="correct_color" default="True" doc='{"type":"bool","allowEmpty":false,"help":"Whether to apply underwater color correction."}'/>
<node name="depthai_spatial_detection" pkg="cv" type="depthai_spatial_detection.py" output="screen">
<param name="model" value="$(arg model)" />
<param name="rgb_raw" value="$(arg rgb_raw)" />
Expand All @@ -16,5 +17,6 @@
<param name="using_sonar" value="$(arg using_sonar)" />
<param name="show_class_name" value="$(arg show_class_name)" />
<param name="show_confidence" value="$(arg show_confidence)" />
<param name="correct_color" value="$(arg correct_color)" />
</node>
</launch>
3 changes: 3 additions & 0 deletions onboard/catkin_ws/src/cv/launch/path_marker_detector.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<launch>
<node name="path_marker_detector" pkg="cv" type="path_marker_detector.py" output="screen"/>
</launch>
6 changes: 6 additions & 0 deletions onboard/catkin_ws/src/cv/launch/pink_bins_detector.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<launch>
<arg name="camera" default="front" />
<node name="$(anon pink_bins_detector)" pkg="cv" type="pink_bins_detector.py" output="screen">
<param name="camera" value="$(arg camera)" />
</node>
</launch>
6 changes: 3 additions & 3 deletions onboard/catkin_ws/src/cv/launch/usb_camera.launch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0"?>
<launch>
<arg name="topic" default="usb_camera" doc='{"type":"str","help":"The feed from the USB camera will be published to /camera/[topic]/image_raw."}'/>
<arg name="channel" default="0" doc='{"type":"int","help":"If the desired USB camera is publishing at the path /dev/video/[channel], this value is [channel]."}' />
<arg name="device_path" default="/dev/video_front" doc='{"type":"int","help":"The path the desired USB camera is publishing at. Ex. /dev/video0."}' />
<arg name="framerate" default="-1" doc='{"type":"int","help":"Publishing framerate of USB camera. If this value is -1, the default framerate of the camera will be used."}' />
<node name="usb_camera" pkg="cv" type="usb_camera.py" output="screen">
<node name="$(anon usb_camera)" pkg="cv" type="usb_camera.py" output="screen">
<param name="topic" value="$(arg topic)" />
<param name="channel" value="$(arg channel)" />
<param name="device_path" value="$(arg device_path)" />
<param name="framerate" value="$(arg framerate)" />
</node>
</launch>
3 changes: 3 additions & 0 deletions onboard/catkin_ws/src/cv/launch/usb_camera_connect.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<launch>
<node name="usb_camera_connect" pkg="cv" type="usb_camera_connect.py" output="screen"/>
</launch>
Binary file not shown.
Binary file not shown.
Binary file not shown.
44 changes: 43 additions & 1 deletion onboard/catkin_ws/src/cv/models/depthai_models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,46 @@ yolov7_tiny_2023_main:
anchor_masks: {"side52": [0,1,2], "side26": [3,4,5], "side13": [6,7,8]}
iou_threshold: 0.5
confidence_threshold: 0.5
colors: ["DC143C", "FFA500", "FFFF00", "00FF00", "000080", "8A2BE2"]
colors: ["DC143C", "FFA500", "FFFF00", "00FF00", "000080", "8A2BE2"]

##################
# COMPETITION MODEL
2024_gate_glyphs:
classes: ["gate_blue_ccw", "gate_red_cw", "gate_tick", "gate_whole"]
sizes: {"gate_blue_ccw": [0.24, 0.3], "gate_red_cw": [0.24, 0.3], "gate_tick": [0.051, 0.61], "gate_whole": [3.048, 1.52]}
topic: cv/
weights: 2024_gate_glyphs_5shave.blob
input_size: [416, 416]
coordinate_size: 4
anchors: [12.0, 16.0, 19.0, 36.0, 40.0, 28.0, 36.0, 75.0, 76.0, 55.0, 72.0, 146.0, 142.0, 110.0, 192.0, 243.0, 459.0, 401.0]
anchor_masks: {"side52": [0,1,2], "side26": [3,4,5], "side13": [6,7,8]}
iou_threshold: 0.5
confidence_threshold: 0.9
colors: ["800000", "3C14DC", "00FFFF", "00A5FF"]
###################

2024_gate_glyphs_5shave:
classes: ["gate_blue_ccw", "gate_red_cw", "gate_tick", "gate_whole"]
sizes: {"gate_blue_ccw": [0.24, 0.3], "gate_red_cw": [0.24, 0.3], "gate_tick": [0.051, 0.61], "gate_whole": [3.048, 1.52]}
topic: cv/
weights: 2024_gate_glyphs_5shave.blob
input_size: [416, 416]
coordinate_size: 4
anchors: [12.0, 16.0, 19.0, 36.0, 40.0, 28.0, 36.0, 75.0, 76.0, 55.0, 72.0, 146.0, 142.0, 110.0, 192.0, 243.0, 459.0, 401.0]
anchor_masks: {"side52": [0,1,2], "side26": [3,4,5], "side13": [6,7,8]}
iou_threshold: 0.5
confidence_threshold: 0.9
colors: ["800000", "3C14DC", "00FFFF", "00A5FF"]

2024_gate_glyphs_10shave:
classes: ["gate_blue_ccw", "gate_red_cw", "gate_tick", "gate_whole"]
sizes: {"gate_blue_ccw": [0.24, 0.3], "gate_red_cw": [0.24, 0.3], "gate_tick": [0.051, 0.61], "gate_whole": [3.048, 1.52]}
topic: cv/
weights: 2024_gate_glyphs_10shave.blob
input_size: [416, 416]
coordinate_size: 4
anchors: [12.0, 16.0, 19.0, 36.0, 40.0, 28.0, 36.0, 75.0, 76.0, 55.0, 72.0, 146.0, 142.0, 110.0, 192.0, 243.0, 459.0, 401.0]
anchor_masks: {"side52": [0,1,2], "side26": [3,4,5], "side13": [6,7,8]}
iou_threshold: 0.5
confidence_threshold: 0.9
colors: ["800000", "3C14DC", "00FFFF", "00A5FF"]
Loading
Loading