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

AD2-40: path_planning_visualiser launchfile #145

Closed
wants to merge 467 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
467 commits
Select commit Hold shift + click to select a range
5623f8f
Merge pull request #79 from UOA-FSAE/splitting_planner_concerns
Tanish29 Feb 20, 2024
d5fd3d1
cleanup and refactor
Feb 20, 2024
71cd69f
Way points
Zane-Larking Feb 20, 2024
6bff6bb
finished implementation start testing
dyu056 Feb 21, 2024
8120c1f
done initial integrated test
dyu056 Feb 21, 2024
043100b
Merge branch 'nightly' into 77-feat-pure-pursuit-control-daniel
dyu056 Feb 21, 2024
0497106
Merge pull request #80 from UOA-FSAE/77-feat-pure-pursuit-control-daniel
dyu056 Feb 21, 2024
0a10645
tuning
dyu056 Feb 22, 2024
6fde1fd
SIM FINISHES A LAAAAAAAAP YOOHOOO
dyu056 Feb 23, 2024
292c3d3
axis redefined and cam tested
Feb 23, 2024
14d8108
getting sim code from nightly
Feb 23, 2024
a7b10db
Experimental works: If it doesn't runs through a lap then please reve…
dyu056 Feb 23, 2024
ebdcb59
testing sim on my end
Feb 23, 2024
1aa3784
Merge pull request #82 from UOA-FSAE/splitting_planner_concerns
Tanish29 Feb 24, 2024
af30539
defined template node for event controller; assumed descriptions are …
qube1t Feb 25, 2024
ca11d40
defined pulse msg with boolean and string data
qube1t Feb 25, 2024
73b7db1
renames topics to reflect documentation
qube1t Feb 25, 2024
2330e89
Merge branch 'nightly' into path-planning_perception
Tanish29 Feb 26, 2024
e147cf4
Merge pull request #83 from UOA-FSAE/path-planning_perception
Tanish29 Feb 26, 2024
f1883e0
Fix several problems
dyu056 Feb 27, 2024
1b91433
path planning code test
Feb 27, 2024
ed1ee55
success, but perception and planning need to speed up! possibly resea…
dyu056 Feb 27, 2024
04b8572
Sim now don't crash
dyu056 Feb 27, 2024
650eb49
Merge branch 'nightly' into sim_improvement
dyu056 Feb 27, 2024
03add26
Merge pull request #84 from UOA-FSAE/sim_improvement
dyu056 Feb 27, 2024
2e2222d
path planning code test sim
Feb 29, 2024
0007916
path planning code test sim
Feb 29, 2024
6d775b5
Now it works on oringit add src!
dyu056 Mar 1, 2024
1d02154
Stanley control-draft
YachtChen Mar 2, 2024
4209ed5
path planning code test sim
Mar 3, 2024
0ea3989
Merge pull request #87 from UOA-FSAE/path-planning_perception
Tanish29 Mar 3, 2024
4754c25
local changes from nightly - close :)
Mar 6, 2024
250888e
pull from nightly
Mar 6, 2024
182e339
openai gym trial with unity sim - not so great for RL
Mar 10, 2024
106d4a3
trying to setup gazebo and urdf
Mar 13, 2024
f2bad73
moa control launch file
Mar 13, 2024
e8f89a8
gazebo simulation update
Mar 15, 2024
4778673
boundary adjustment added - buggy
Mar 15, 2024
58ff897
sim launch file
Mar 16, 2024
d7c231d
path planning test on new computer
Mar 17, 2024
8dc2a42
steering angle to degrees
Mar 17, 2024
d51a2c4
new algo - shortest path
Mar 17, 2024
00ee25d
Stanley Update
Mar 18, 2024
bd11fb5
new trajectory generator test
Mar 18, 2024
6595c97
more path planning sim work
Mar 19, 2024
dd243f9
shortest path - bracket creation done
Mar 19, 2024
e1145a1
milestone: ready to test
dyu056 Mar 20, 2024
4a3263e
milestone: now it is readygit add --all!
dyu056 Mar 20, 2024
2887497
Merge pull request #88 from UOA-FSAE/path-planning_perception
Tanish29 Mar 20, 2024
23ff5cc
brackets show up, compute path draft
Mar 20, 2024
176a2d2
shortest path node created - very buggy
Mar 21, 2024
63c8e02
changed docker, added usb device and changed few setting for jetson
dyu056 Mar 26, 2024
3a1d1db
trajector follower controller - smoother following
Mar 26, 2024
d555c53
distance to center line controller
Mar 28, 2024
00b0890
fixing shortest path code - cone map not accurate
Mar 29, 2024
3964bea
Fixed some errors in yaw angle adjustment
YachtChen Apr 1, 2024
5340d62
latest_tune
dyu056 Apr 2, 2024
f5bf162
latest
dyu056 Apr 3, 2024
495b93b
fixed ssh zed camera not working
dyu056 Apr 3, 2024
bb0fa29
Merge branch 'nightly' of github.com:UOA-FSAE/autonomous into nightly
dyu056 Apr 3, 2024
9e81212
versionalize cone map
dyu056 Apr 3, 2024
40f07d9
cluster method complete
dyu056 Apr 4, 2024
176d245
complete cluster
dyu056 Apr 4, 2024
04b5032
cone map redefine hahaha
dyu056 Apr 4, 2024
6a4f573
code refactor
Apr 4, 2024
061b44d
Merge pull request #89 from UOA-FSAE/nightly_perception_improvement
dyu056 Apr 4, 2024
b94c7f3
bringup file completed
dyu056 Apr 7, 2024
705e933
in process of overall test duh
dyu056 Apr 7, 2024
2694f7b
final change before test, trust me this timeeeee
dyu056 Apr 7, 2024
80e9676
ready for test platform release
AdrianRosioru Apr 10, 2024
594a525
Merge pull request #91 from UOA-FSAE/path-planning_perception
Tanish29 Apr 10, 2024
6d59c44
Merge branch 'nightly' of github.com:UOA-FSAE/autonomous into nightly
AdrianRosioru Apr 11, 2024
5de5677
latest tune
AdrianRosioru Apr 11, 2024
024fd96
latest tune - dont rm
AdrianRosioru Apr 11, 2024
0d05c18
trajectory follower small change
Apr 12, 2024
bdfc6ef
testing my centerline
AdrianRosioru Apr 12, 2024
121465c
boundary interpolation added - kart runs at max speed of 25kph before…
AdrianRosioru Apr 12, 2024
319a3d8
Merge branch 'nightly' into path-planning_new_algos
Tanish29 Apr 16, 2024
480406f
Merge pull request #92 from UOA-FSAE/path-planning_new_algos
Tanish29 Apr 16, 2024
ebf8257
fixing shortest path boundary mapping
Apr 16, 2024
7a80239
improved path planning - draft
Apr 18, 2024
ea3bff4
fixing less cone problem
Apr 24, 2024
1ca93e9
trying cone fix for center line
AdrianRosioru Apr 24, 2024
5c91e88
interpolate centerline
Apr 25, 2024
786d3a7
Merge pull request #94 from UOA-FSAE/path-planning_new_algos
YachtChen Apr 28, 2024
d790062
Fixed Yaw angle calculation
YachtChen Apr 28, 2024
272ef36
fixing new path planning
Apr 29, 2024
e96b258
Create improved_kalman_filter.py
Apr 29, 2024
49f6c6c
fixed starting node to 0 cost
May 1, 2024
0df0695
Distance Error Control
YachtChen May 5, 2024
08f3351
Reorganised local to global conversion code
May 5, 2024
edd7a08
i think new path planning works now...
May 6, 2024
9b70cf5
bug fixed - ideal conemap used but sim not working
May 7, 2024
09ce1de
finally fixed DP except in sim :(
May 12, 2024
85d2296
Finish implementing the improved cone mapping
May 13, 2024
720d06d
Merge pull request #96 from UOA-FSAE/path-planning_new_algos
Tanish29 May 13, 2024
d953938
Added protobuff-compiler submodule
Zane-Larking May 14, 2024
c3f9344
Changed parameters
May 17, 2024
8dd0864
Test of New Path planning
YachtChen May 19, 2024
f430653
Acceleration Algorithm
YachtChen May 19, 2024
25ce522
Add duration measurement
May 24, 2024
f6f819d
Safer Acceleration
YachtChen May 25, 2024
0d2fb19
Add thread safety
May 27, 2024
3458baa
Fixed bugs
May 27, 2024
650283a
Merge pull request #98 from UOA-FSAE/nightly
YachtChen May 28, 2024
d4039b1
Merge pull request #99 from UOA-FSAE/stanley_controller
YachtChen May 28, 2024
f0013e6
Small fix after merge
YachtChen May 28, 2024
a1a1f13
Changed parameters for cone_mapping
May 31, 2024
6398553
code cleanup - not working atm
Jun 2, 2024
710f614
more cleanup - still not work atm
Jun 3, 2024
0080cff
center line code cleanedup - works need smoother centerline
Jun 5, 2024
3ab3b4e
Merge branch 'nightly' into improve_centerline
Tanish29 Jun 5, 2024
ccd4fe5
Merge pull request #100 from UOA-FSAE/improve_centerline
Tanish29 Jun 5, 2024
012ca61
interpolation for corners added - not working yet
Jun 5, 2024
c1c48d9
local boundary list and interpolation work on fake cone but not sim
Jun 7, 2024
cdf4ca4
local cones based on closest distances and test on sim - kinda works …
Jun 10, 2024
2a67baf
configuring controller to send ackerman for gokart
Jun 19, 2024
a70ce8e
car position node added for temp
Jun 19, 2024
483fc38
keyboard teleop draft
Jun 22, 2024
9a5e82b
different package that supports over wsl and ssh
Jun 23, 2024
a58762d
reduced logging
Jun 23, 2024
ca5ac48
Merge pull request #97 from UOA-FSAE/feat-proto-msg
Zane-Larking Jun 25, 2024
06796c4
create ConeMapLit
Jun 25, 2024
2bcc166
create ConeMapList
Jun 25, 2024
1023b88
done
Jun 26, 2024
c8969ca
done
Jun 26, 2024
9904452
done
Jun 26, 2024
98d9945
Merge branch 'cone_map_restructure_updated' of https://github.com/UOA…
Zane-Larking Jun 26, 2024
3eaf5cc
Merge branch 'cone_map_restructure_updated' of https://github.com/UOA…
Zane-Larking Jun 26, 2024
57705b7
Merge pull request #106 from UOA-FSAE/cone_map_restructure
Zane-Larking Jun 26, 2024
70f6107
added messages back
Zane-Larking Jun 26, 2024
b0a8ef8
testing something
AdrianRosioru Jul 3, 2024
5b3a910
runtime flag for autonomous ros doesnt work for dev envirnoment
Jul 9, 2024
a6c4453
ps4 controller draft
AdrianRosioru Jul 11, 2024
b672b8b
ps4 controller with speed and steering control
AdrianRosioru Jul 12, 2024
ea1174d
works as a node
AdrianRosioru Jul 12, 2024
8295b87
Inference with Roboflow
Jul 13, 2024
64e6284
reduced max speed
AdrianRosioru Jul 14, 2024
4b57347
msg generation for linux
Jul 14, 2024
6ef0bce
removed new line
Jul 14, 2024
132e142
Merge branch 'clean_branches' into 10-feat-default-launch-to-bring-up…
Tanish29 Jul 18, 2024
b1127b6
Merge pull request #107 from UOA-FSAE/10-feat-default-launch-to-bring…
Tanish29 Jul 18, 2024
e81d4eb
Merge branch 'clean_branches' into 4-feat-readme-and-onboarding-setup…
Tanish29 Jul 18, 2024
3e1c610
Merge pull request #108 from UOA-FSAE/4-feat-readme-and-onboarding-se…
Tanish29 Jul 18, 2024
805a5ca
old make file
Jul 18, 2024
81b113c
removed duplicate make files
Jul 18, 2024
acdd6b2
added current make file
Jul 18, 2024
94067fd
conflicts fixed - current gitmodules
Jul 18, 2024
15e5b2d
Merge pull request #109 from UOA-FSAE/28-feat-localisation
Tanish29 Jul 18, 2024
b08b9c0
Merge branch 'clean_branches' into 58-feat-path-planning-messages
Tanish29 Jul 18, 2024
fcb3fb0
Merge pull request #110 from UOA-FSAE/58-feat-path-planning-messages
Tanish29 Jul 18, 2024
4b18aec
conflicts - setup file fixed and zed_wrapper folder removed
Jul 18, 2024
0b9cb72
Merge pull request #112 from UOA-FSAE/go-kart
Tanish29 Jul 18, 2024
5ef3956
added zed config file command to templates folder
Jul 18, 2024
506bbc5
Merge branch 'clean_branches' into cone-detect-map-test-orin
Tanish29 Jul 18, 2024
d0a62a0
Merge pull request #113 from UOA-FSAE/cone-detect-map-test-orin
Tanish29 Jul 18, 2024
8b8b36d
conflicts - kalman filter node added
Jul 18, 2024
41f6ed1
Merge pull request #114 from UOA-FSAE/cone-detect-map-test
Tanish29 Jul 18, 2024
29c134a
Merge pull request #115 from UOA-FSAE/13-feat-can-message-decoder
Tanish29 Jul 18, 2024
5852d4d
conflict - pure pursuit controller in moa_controllers deleted
Jul 18, 2024
10b7a25
Merge pull request #116 from UOA-FSAE/77-feat-pure-pursuit-control
Tanish29 Jul 18, 2024
521ed03
Merge pull request #117 from UOA-FSAE/81-feat-event-controller-nodes
Tanish29 Jul 18, 2024
e574533
Merge pull request #119 from UOA-FSAE/test-platform-release
Tanish29 Jul 18, 2024
894a150
Merge pull request #120 from UOA-FSAE/onelap_controller_gokart
Tanish29 Jul 18, 2024
e2d7251
Merge branch 'clean_branches' into improve_centerline
Tanish29 Jul 18, 2024
2a3db40
Merge pull request #121 from UOA-FSAE/improve_centerline
Tanish29 Jul 18, 2024
e366f80
Merge pull request #122 from UOA-FSAE/keyboard_teleop
Tanish29 Jul 18, 2024
317debc
removed shortest path algo
Jul 18, 2024
f60391e
conflict - setup file and local branch had an image
Jul 18, 2024
4623872
Merge pull request #123 from UOA-FSAE/path-planning_new_algos
Tanish29 Jul 18, 2024
6e3a3ff
Merge pull request #124 from UOA-FSAE/joystick_teleop
Tanish29 Jul 18, 2024
cd655ad
deleted a bunch of files, sh files -> scripts folder, other stuff -> …
Jul 19, 2024
01c0a1f
New Model
YachtChen Jul 21, 2024
bb79fad
Visualization works
YachtChen Jul 21, 2024
086a0e2
Removing submodule
YachtChen Jul 21, 2024
20ccf14
Removed yolov7
YachtChen Jul 21, 2024
cc5a2c8
NO visualization version
YachtChen Jul 21, 2024
2b6f484
Changed a little bit
YachtChen Jul 21, 2024
727f529
Merge pull request #126 from UOA-FSAE/cone_map_restructure_updated
Zane-Larking Jul 21, 2024
5a5ab2a
Updated YOLOv7 to v8
winola-whu Jul 29, 2024
e5dffb1
changes people did not commit :(
Aug 9, 2024
2c5d54e
clean_branches -> nightly merge conflicts fixed
Aug 9, 2024
8c24d6c
Merge pull request #125 from UOA-FSAE/clean_branches
Tanish29 Aug 9, 2024
6f0ecce
updated zed sdk docker image
Aug 9, 2024
a25da3d
removed redundant volumes
Aug 9, 2024
7f04bf7
changed docker
AdrianRosioru Aug 11, 2024
afcc0d2
Merge pull request #128 from UOA-FSAE/zed_update_sdk_docker
Tanish29 Aug 15, 2024
22d9c86
new file with node to publish detection (codes based on detection_fin…
winola-whu Aug 18, 2024
cdb0a9f
Merge branch 'cone_detection_test' of https://github.com/UOA-FSAE/aut…
AdrianRosioru Aug 18, 2024
d447126
restored changes prior to merge with nightly
AdrianRosioru Aug 20, 2024
a2b1bd8
merge conflicts fixed
AdrianRosioru Aug 20, 2024
a60b221
Merge pull request #129 from UOA-FSAE/cone_detection_test
Tanish29 Aug 20, 2024
653fad0
zed jetson container docker issues may be fixed
Aug 21, 2024
90be9b0
sim package added and draft of getting cones from sim
Aug 28, 2024
d1f3dcf
get_cones node publishes cone map
Aug 29, 2024
c8d4607
cones transformed to ENU frame and car position node
Aug 30, 2024
1cbc3b0
added sim repo to modules and tested node publishing
Aug 30, 2024
e447e9e
Merge pull request #130 from UOA-FSAE/nightly
Tanish29 Aug 30, 2024
80d9b60
Merge pull request #131 from UOA-FSAE/fs_driverless_sim
Tanish29 Aug 30, 2024
88dff83
tested simulator nodes with planning - seems to work
Aug 30, 2024
1f0e8e5
sim controller node added planning doesn't work in the sim atm
Aug 30, 2024
b0f7416
New cone mapping node
Sep 1, 2024
fd385f9
Double checked
Sep 2, 2024
7e79967
fixed requirements file and updated package dependencies for rosdep
Sep 3, 2024
8c761e5
fix
AdrianRosioru Sep 4, 2024
284969b
git ignore change
AdrianRosioru Sep 4, 2024
4dfc0da
git ignore change
AdrianRosioru Sep 4, 2024
274c7aa
git ignore change
AdrianRosioru Sep 4, 2024
665d60c
deleted trajectory generators - not needed
Sep 5, 2024
38ebdb2
centerline planner
Sep 5, 2024
b7d22f0
Merge pull request #132 from UOA-FSAE/fs_driverless_sim
Tanish29 Sep 5, 2024
b4d230d
nightly merge conflicts fixed
Sep 5, 2024
16fef15
Merge pull request #133 from UOA-FSAE/improve_centerline
Tanish29 Sep 5, 2024
3b8ccae
interpolation added to centerline planner
Sep 5, 2024
ca9c64c
tried removing points behind car - failed
Sep 5, 2024
3914bc0
deleted trajectory optimizer - no longer needed :(
Sep 5, 2024
81e4669
Merge pull request #134 from UOA-FSAE/fix_requirements_file
Tanish29 Sep 5, 2024
0ae43f6
having issues with cmakelists.txt
AdrianRosioru Sep 5, 2024
9e0aaa6
holy shit it works, node in cone_detection_cpp, need to figure out ho…
AdrianRosioru Sep 5, 2024
d7a3ecd
removed wsl ip
Sep 6, 2024
f642546
1st point least weighted - better if point is behind car
Sep 6, 2024
44dee34
Merge remote-tracking branch 'origin/cone_detection_test' into cone_d…
Sep 7, 2024
f1bc78b
Node completed publishing cone messages to 'cone_detection'
AdrianRosioru Sep 7, 2024
be99c65
Merge branch 'cone_detection_test' of https://github.com/UOA-FSAE/aut…
AdrianRosioru Sep 7, 2024
e6dbc84
clean up
AdrianRosioru Sep 7, 2024
008bf3c
Update interfaces.proto
winola-whu Sep 9, 2024
676352f
new cone mapping node
Sep 12, 2024
bd322b6
merged message changes to current branch
AdrianRosioru Sep 15, 2024
760ed26
Fully completed zed launch node, localisation, and cone detection wit…
AdrianRosioru Sep 15, 2024
2638206
joystick teleop launch file
Sep 18, 2024
a94dea5
Merged cone mapping and cone detection
AdrianRosioru Sep 18, 2024
eabb62a
disable API control when getting information from sim
Sep 18, 2024
818952e
Merge pull request #136 from UOA-FSAE/improve_centerline
Tanish29 Sep 19, 2024
2260a5d
joystick control fixed
Sep 19, 2024
d718b9f
Merge branch 'nightly' into dev_workshop_gokart
Sep 19, 2024
47bd0de
Merge pull request #137 from UOA-FSAE/dev_workshop_gokart
Tanish29 Sep 19, 2024
1c5fcb5
Colcon build issues
AdrianRosioru Sep 19, 2024
1999f1c
Created foxglove visualizer for localizer
AdrianRosioru Sep 19, 2024
3811eca
Rename some things
AdrianRosioru Sep 22, 2024
0044228
Merge remote-tracking branch 'origin/nightly' into cone_detection_test
AdrianRosioru Sep 22, 2024
f31c439
Fixed visualization
AdrianRosioru Sep 22, 2024
b8969c0
beginning to work in visualizer
AdrianRosioru Sep 23, 2024
d57cf20
cone mapping working
AdrianRosioru Sep 23, 2024
a771aac
added camera visual feature on foxglove:
AdrianRosioru Sep 23, 2024
1e47b77
clean up everything
AdrianRosioru Sep 23, 2024
9fdde25
Made requested changes
AdrianRosioru Sep 24, 2024
608778f
Merge pull request #138 from UOA-FSAE/cone_detection_test
Tanish29 Sep 24, 2024
13c88dd
steer_torque_from_ackermann launch file
Jonty-Clark Nov 17, 2024
c598ec4
Updated setup.py folder to include launch file
Jonty-Clark Nov 17, 2024
627cea2
Launch file made
Jonty-Clark Nov 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
128 changes: 128 additions & 0 deletions .devcontainer/SN31421864.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
[LEFT_CAM_2K]
fx=1066.99
fy=1067.53
cx=1100.79
cy=706.191
k1=-0.0495743
k2=0.020489
p1=-0.000243737
p2=3.96992e-05
k3=-0.00818716

[RIGHT_CAM_2K]
fx=1065.5
fy=1065.75
cx=1122.09
cy=640.969
k1=-0.0468283
k2=0.0178541
p1=0.000339256
p2=0.000245197
k3=-0.0075008

[LEFT_CAM_FHD]
fx=1066.99
fy=1067.53
cx=956.79
cy=625.191
k1=-0.0495743
k2=0.020489
p1=-0.000243737
p2=3.96992e-05
k3=-0.00818716

[RIGHT_CAM_FHD]
fx=1065.5
fy=1065.75
cx=978.09
cy=559.969
k1=-0.0468283
k2=0.0178541
p1=0.000339256
p2=0.000245197
k3=-0.0075008

[LEFT_CAM_HD]
fx=533.495
fy=533.765
cx=636.895
cy=401.0955
k1=-0.0495743
k2=0.020489
p1=-0.000243737
p2=3.96992e-05
k3=-0.00818716

[RIGHT_CAM_HD]
fx=532.75
fy=532.875
cx=647.545
cy=368.4845
k1=-0.0468283
k2=0.0178541
p1=0.000339256
p2=0.000245197
k3=-0.0075008

[LEFT_CAM_VGA]
fx=266.7475
fy=266.8825
cx=333.9475
cy=208.04775
k1=-0.0495743
k2=0.020489
p1=-0.000243737
p2=3.96992e-05
k3=-0.00818716

[RIGHT_CAM_VGA]
fx=266.375
fy=266.4375
cx=339.2725
cy=191.74225
k1=-0.0468283
k2=0.0178541
p1=0.000339256
p2=0.000245197
k3=-0.0075008

[LEFT_DISTO]
k1=-1.40642
k2=2.61105
k3=0.0956687
k4=-1.31639
k5=2.46001
k6=0.261205
p1=-0.000180107
p2=0.000213672

[RIGHT_DISTO]
k1=-2.09762
k2=3.39804
k3=-0.0209668
k4=-2.01869
k5=3.23978
k6=0.160207
p1=0.000360357
p2=0.000109906

[STEREO]
Baseline=119.815
TY=-0.324386
TZ=0.576337
CV_2K=0.00772691
CV_FHD=0.00772691
CV_HD=0.00772691
CV_VGA=0.00772691
RX_2K=0.000780887
RX_FHD=0.000780887
RX_HD=0.000780887
RX_VGA=0.000780887
RZ_2K=0.00237878
RZ_FHD=0.00237878
RZ_HD=0.00237878
RZ_VGA=0.00237878

[MISC]
Sensor_ID=0

42 changes: 20 additions & 22 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,67 +3,65 @@ version: '3.4'
services:
autonomous_ros2:
image: autonomous

build:
context: ..
dockerfile: .devcontainer/ros2_ws.Dockerfile

environment:
- DISPLAY
- NVIDIA_VISIBLE_DEVICES=0
- DISPLAY=host.docker.internal
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all

- ROS_DOMAIN_ID=47 # Its 47 for obvious reasons

- ROS_DOMAIN_ID=47
volumes:
- ..:/ws

network_mode: host
ipc: host
stdin_open: true
tty: true

runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: []
capabilities: [gpu]

privileged: true
devices:
- /dev:/dev

autonomous_zed:
image: zed_sdk

privileged: true

build:
context: ..
dockerfile: .devcontainer/zed.Dockerfile

environment:
- DISPLAY
- NVIDIA_VISIBLE_DEVICES=0
- DISPLAY=host.docker.internal
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
- ROS_DOMAIN_ID=47

# command: "ros2 launch zed_wrapper zed_camera.launch.py camera_model:='zed2i'"

volumes:
- ../bringup:/ws/bringup
- ../src/perception/:/ws/src/perception/
- ../src/visualization/:/ws/src/visualization/
- ../src/moa/moa_description:/ws/src/moa/moa_description
- ../src/moa/moa_msgs:/ws/src/moa/moa_msgs


- ../ros_entrypoint.sh:/ws/ros_entrypoint.sh
- /tmp/.X11-unix:/tmp/.X11-unix
- /dev:/dev

command: bash -c ". /ws/ros_entrypoint.sh && ros2 launch zed_wrapper zed_camera.launch.py camera_model:='zed2i'"
network_mode: host
ipc: host
stdin_open: true
tty: true

# runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: []
capabilities: [gpu]
privileged: true
devices:
- /dev:/dev
73 changes: 73 additions & 0 deletions .devcontainer/ros2_perception.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
FROM nvcr.io/nvidia/l4t-base:35.4.1
LABEL Name=autonomous Version=0.0.1

SHELL [ "/bin/bash", "-c" ]

WORKDIR /ws

RUN apt-get update && \
apt-get install -y --no-install-recommends \
libopenblas-dev \
libopenmpi-dev \
openmpi-bin \
openmpi-common \
gfortran \
libomp-dev \
nvidia-cuda-dev \
nvidia-cudnn8-dev && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean

RUN apt update && apt install locales && \
locale-gen en_US en_US.UTF-8 && \
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8

RUN apt update && apt install -y gnupg wget software-properties-common && \
add-apt-repository universe

RUN wget -qO - https://isaac.download.nvidia.com/isaac-ros/repos.key | \
apt-key add - && \
echo 'deb https://isaac.download.nvidia.com/isaac-ros/ubuntu/main focal main' | \
tee -a "/etc/apt/sources.list"

RUN apt update && apt install curl -y && \
curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu focal main" | \
tee /etc/apt/sources.list.d/ros2.list > /dev/null

ENV ROS_DISTRO humble

RUN apt update && apt install --no-install-recommends -y \
ros-humble-ros-base \
ros-dev-tools \
build-essential \
python3-colcon-common-extensions \
python3-colcon-mixin \
python3-rosdep \
python3-vcstool \
python3-pip \
ros-humble-foxglove-bridge && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean && \
echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc

COPY . .

RUN rosdep init && rosdep update --rosdistro $ROS_DISTRO && apt-get update && \
cd /ws && \
rosdep install --from-paths src -y -r --ignore-src --rosdistro=$ROS_DISTRO --os=ubuntu:jammy && \
rm -rf /var/lib/apt/lists/*

ENV PYTORCH_URL=https://developer.download.nvidia.com/compute/redist/jp/v512/pytorch/torch-2.1.0a0+41361538.nv23.06-cp38-cp38-linux_aarch64.whl PYTORCH_WHL=torch-2.1.0a0+41361538.nv23.06-cp38-cp38-linux_aarch64.whl

RUN cd /opt && \
wget --quiet --show-progress --progress=bar:force:noscroll --no-check-certificate ${PYTORCH_URL} -O ${PYTORCH_WHL} && \
pip3 install --verbose ${PYTORCH_WHL}

RUN python3 -c 'import torch; print(f"PyTorch version: {torch.__version__}"); print(f"CUDA available: {torch.cuda.is_available()}"); print(f"cuDNN version: {torch.backends.cudnn.version()}"); print(torch.__config__.show());'

RUN source /opt/ros/humble/setup.bash && \
colcon build --parallel-workers $(nproc) --symlink-install \
--event-handlers console_direct+ --base-paths src

CMD [ "bash" ]
Loading
Loading