Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
341 commits
Select commit Hold shift + click to select a range
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
yiyang-393 Apr 28, 2024
d790062
Fixed Yaw angle calculation
Apr 28, 2024
272ef36
fixing new path planning
Apr 29, 2024
e96b258
Create improved_kalman_filter.py
pang-haoyu Apr 29, 2024
49f6c6c
fixed starting node to 0 cost
May 1, 2024
0df0695
Distance Error Control
May 5, 2024
08f3351
Reorganised local to global conversion code
pang-haoyu 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
pang-haoyu 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
pang-haoyu May 17, 2024
8dd0864
Test of New Path planning
May 19, 2024
f430653
Acceleration Algorithm
May 19, 2024
25ce522
Add duration measurement
May 24, 2024
f6f819d
Safer Acceleration
May 25, 2024
0d2fb19
Add thread safety
pang-haoyu May 27, 2024
3458baa
Fixed bugs
May 27, 2024
650283a
Merge pull request #98 from UOA-FSAE/nightly
yiyang-393 May 28, 2024
d4039b1
Merge pull request #99 from UOA-FSAE/stanley_controller
yiyang-393 May 28, 2024
f0013e6
Small fix after merge
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
pang-haoyu Jun 25, 2024
2bcc166
create ConeMapList
pang-haoyu Jun 25, 2024
1023b88
done
pang-haoyu Jun 26, 2024
c8969ca
done
pang-haoyu Jun 26, 2024
9904452
done
pang-haoyu 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
Jul 21, 2024
bb79fad
Visualization works
Jul 21, 2024
086a0e2
Removing submodule
Jul 21, 2024
20ccf14
Removed yolov7
Jul 21, 2024
cc5a2c8
NO visualization version
Jul 21, 2024
2b6f484
Changed a little bit
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
pang-haoyu Sep 1, 2024
fd385f9
Double checked
pang-haoyu 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
pang-haoyu 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
d5088e3
pulled
Sep 24, 2024
608778f
Merge pull request #138 from UOA-FSAE/cone_detection_test
Tanish29 Sep 24, 2024
9a961bd
cone mapping modified for pang
AdrianRosioru Sep 26, 2024
b7dddfe
Added deleter for cone_map
AdrianRosioru Sep 27, 2024
184369f
cone deleter sucks
AdrianRosioru Sep 28, 2024
4689e77
finished
AdrianRosioru Sep 29, 2024
66c722c
Velocity broken
AdrianRosioru Sep 29, 2024
cd94f0e
Merge branch 'cone_detection_test' of https://github.com/UOA-FSAE/aut…
Sep 29, 2024
c17993c
cone_mapping_modified
Oct 2, 2024
ce75624
Merge branch 'cone_detection_test' of https://github.com/UOA-FSAE/aut…
Oct 2, 2024
e2921cd
Modified kalman filter params
Oct 3, 2024
62a3db3
path planning launch file - 1st commit
Nov 13, 2024
c0ef2da
simulator launch file - 1st commit
Nov 14, 2024
0d0c584
aruco detection launch file - 1st commit
Nov 16, 2024
b98355f
add launch files
pang-haoyu Nov 16, 2024
614f389
Merge branch 'nightly' into cone_detection_test
AdrianRosioru Nov 17, 2024
628e2ba
Added pure_pursuit, pure_pursuit_visualiser, head_to_goal, localizati…
winola-whu Nov 17, 2024
d153519
Created a launch file for the zed_launch
AdrianRosioru Nov 17, 2024
ea69397
Update default values in simulator.launch.py
Tanish29 Nov 19, 2024
d078965
Merge pull request #141 from UOA-FSAE/AD2-10/21
Tanish29 Nov 19, 2024
00573fc
Completed launch files, head_to_goal_launch succesfully launches node…
winola-whu Nov 20, 2024
f4dd450
Update controller.py
Zane-Larking Nov 21, 2024
7396cbd
Update CanTalk to cantalk
waldosingleton Nov 21, 2024
1f30d54
Merge pull request #140 from UOA-FSAE/AD2-10/34
Tanish29 Nov 23, 2024
42767b9
steer_torque_from_ackermann launchfile
Jonty-Clark Nov 23, 2024
d23c3bb
Error fixed
Jonty-Clark Nov 24, 2024
ef69e04
Comment added
Jonty-Clark Nov 24, 2024
6c446b9
Finished and tested launch files and request
winola-whu Nov 24, 2024
48876f5
Merging because I have to Merge branch 'AD2-25_27_41_42' of github.co…
winola-whu Nov 24, 2024
2fb5f0d
Made changes as requested
AdrianRosioru Nov 30, 2024
daca9d2
Added logs for when visualisation is enabled, made sure all of pure_p…
winola-whu Dec 1, 2024
fccfd25
Merge pull request #139 from UOA-FSAE/AD2-39
Zane-Larking Dec 2, 2024
fa5c859
Merge pull request #148 from UOA-FSAE/AD2-20
Zane-Larking Dec 2, 2024
9d6f94c
Merge pull request #149 from UOA-FSAE/torque_from_ackermann_launch
Zane-Larking Dec 2, 2024
ac6486f
Merge pull request #142 from UOA-FSAE/AD2-25_27_41_42
winola-whu Dec 5, 2024
ceb688a
Acceleration WIP
Jan 12, 2025
eee4936
Merge branch 'nightly' of https://github.com/UOA-FSAE/autonomous into…
Jan 12, 2025
52cd894
curvature_calculator work in progress
Siva-Sriram Jan 12, 2025
63d9ba5
added main
Siva-Sriram Jan 12, 2025
9edaae9
Co-authored-by: Zane Larking <Zane-Larking@users.noreply.github.com>
Siva-Sriram Feb 10, 2025
f737da4
Co-authored-by: Zane Larking <Zane-Larking@users.noreply.github.com>
Siva-Sriram Feb 19, 2025
439c6a0
Co-authored-by: winola-whu <winola-whu@users.noreply.github.com>
Siva-Sriram Feb 25, 2025
606f57d
Co-authored-by: winola-whu <winola-whu@users.noreply.github.com>
Siva-Sriram Feb 27, 2025
18e9e74
Co-authored-by: Jonty-Clark <Jonty-Clark@users.noreply.github.com>
Siva-Sriram Mar 4, 2025
108d5f7
Pang's path planning code
Mar 16, 2025
975ffd0
zed launch shell script
winola-whu Mar 24, 2025
2ff75e5
canDapter modified to auto search
Siva-Sriram Mar 25, 2025
7cfcc81
add package for kart lap attempt
Siva-Sriram Mar 26, 2025
199ca84
modified the default zed run shell script behaviour
winola-whu Mar 31, 2025
32d530c
Removed build and install files from cache
BRUHBRUHtofu Apr 10, 2025
b735f16
Added a gitignore for build and install files
BRUHBRUHtofu Apr 10, 2025
d181c52
modified topic names and launch files
winola-whu Apr 10, 2025
2de2018
Merge pull request #151 from UOA-FSAE/crown_visit
Siva-Sriram Apr 13, 2025
0762524
mock controller stimulus for MoTec testing
Siva-Sriram Apr 30, 2025
f59ac87
Mock controller node
winola-whu May 4, 2025
cad4bd8
Mock controllers
winola-whu Jun 12, 2025
66fe512
Merge branch 'mock-controller-stimulus' into nightly
winola-whu Jun 12, 2025
b3afa1f
cantalk submodule update
winola-whu Jun 12, 2025
fbcff18
Ackermann steering changed to integer
Jun 15, 2025
8d69ae1
Graceful Mock Stimulus Shutdown
winola-whu Jun 22, 2025
01b0e51
tried a shutdown guard condition
winola-whu Jun 23, 2025
24fe569
Changes to how kalmann node spins
winola-whu Jun 23, 2025
bf673c6
Reverted Mock Stimulus shutdown guard condition
winola-whu Jun 23, 2025
8b4fd52
replaced context and executor with spin_until_future_complete in moc_…
winola-whu Jun 23, 2025
1175071
added image throttler (to trakc camera wihtout sending too much
BRUHBRUHtofu Jun 25, 2025
211730c
slight changes to bypass kalman filter for tech night
BRUHBRUHtofu Jun 29, 2025
1fe6567
Merge branch 'nightly' of github.com:UOA-FSAE/autonomous into nightly
BRUHBRUHtofu Jun 29, 2025
f14042a
slight changes to bypass kalman filter for tech night
BRUHBRUHtofu Jun 29, 2025
8b6b3dc
Merge branch 'kalman_bypass' of github.com:UOA-FSAE/autonomous into k…
BRUHBRUHtofu Jun 29, 2025
a2e59d2
init
winola-whu Jun 29, 2025
b6d8cce
Merge remote-tracking branch 'origin/kalman_bypass' into nightly
winola-whu Jun 29, 2025
ea9b15e
Night run ok
winola-whu Jun 30, 2025
67d7ca0
ideal cone reset
winola-whu Jul 2, 2025
b268b86
MVP for tech night
winola-whu Jul 2, 2025
907c95d
added switching cones feature (param is called: blue_left_yellow_righ…
BRUHBRUHtofu Jul 2, 2025
8f956ab
invert cones feature implemented
BRUHBRUHtofu Jul 2, 2025
30fcc25
Updated submodules
winola-whu Jul 2, 2025
04fdc2e
removing ackermann_msgs submodule
winola-whu Jul 2, 2025
f89ed1b
Added branch to .gitmodules
winola-whu Jul 2, 2025
975ea22
invert_cones fixed
BRUHBRUHtofu Jul 2, 2025
ac110f0
Merge branch 'nightly' of github.com:UOA-FSAE/autonomous into nightly
BRUHBRUHtofu Jul 2, 2025
74399f8
fasstube also accepts invert_cones
BRUHBRUHtofu Jul 2, 2025
8ab457c
Updated crown launch file
winola-whu Jul 2, 2025
4b0d810
fasttube steering override
CueHa Jul 2, 2025
dfe1bf5
removing ackermann_msgs submodule
winola-whu Jul 2, 2025
115e93d
fasttube steering override
CueHa Jul 2, 2025
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
  •  
  •  
  •  
7 changes: 4 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "Autonomous Devcontainer",
"name": "Autonomous Dev",

"dockerComposeFile": "docker-compose.yml",
"service": "autonomous_ros2",
"shutdownAction": "none",

"postCreateCommand": "rosdep install --from-paths src -y --ignore-src && colcon build --symlink-install",
"postCreateCommand": "rosdep install --from-paths src -y --ignore-src && colcon build",

"workspaceFolder": "/ws",
"customizations": {
Expand All @@ -28,7 +28,8 @@
"redhat.vscode-xml",
"twxs.cmake",
"VisualStudioExptTeam.intellicode-api-usage-examples",
"VisualStudioExptTeam.vscodeintellicode"
"VisualStudioExptTeam.vscodeintellicode",
"redhat.vscode-yaml"
]
}
}
Expand Down
29 changes: 21 additions & 8 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ services:
context: ..
dockerfile: .devcontainer/ros2_ws.Dockerfile
environment:
- DISPLAY
- DISPLAY=host.docker.internal
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
- ROS_DOMAIN_ID=47
volumes:
- ..:/ws
network_mode: host
Expand All @@ -20,35 +22,46 @@ services:
resources:
reservations:
devices:
- capabilities: [gpu]
- driver: nvidia
device_ids: []
capabilities: [gpu]
privileged: true
devices:
- /dev:/dev

autonomous_zed:
image: zed_sdk
build:
context: ..
dockerfile: .devcontainer/zed.Dockerfile
environment:
- DISPLAY
- DISPLAY=host.docker.internal
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
- ROS_DOMAIN_ID=47
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'"

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
# runtime: nvidia
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
- driver: nvidia
device_ids: []
capabilities: [gpu]
privileged: true
devices:
- /dev:/dev
- /dev:/dev
88 changes: 40 additions & 48 deletions .devcontainer/ros2_perception.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
FROM stereolabs/zed:4.0-tools-devel-l4t-r35.4
LABEL Name=zed_sdk Version=0.0.1
FROM nvcr.io/nvidia/l4t-base:35.4.1
LABEL Name=autonomous Version=0.0.1

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

WORKDIR /ws

ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
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
Expand All @@ -21,61 +35,39 @@ RUN apt update && apt install curl -y && \
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

# setup timezone & install packages
RUN apt-get update && apt-get install -q -y --no-install-recommends \
tzdata \
dirmngr \
gnupg2 \
git \
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-vcstool \
python3-pip \
ros-humble-foxglove-bridge && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
apt-get clean && \
echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc

COPY . .

ENV ROS_DISTRO humble

# setup colcon mixin and metadata
RUN rosdep init && \
rosdep update --rosdistro $ROS_DISTRO && \
colcon mixin add default \
https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml && \
colcon mixin update && \
colcon metadata add default \
https://raw.githubusercontent.com/colcon/colcon-metadata-repository/master/index.yaml && \
colcon metadata update
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/*

COPY ./src/perception/ /ws/src/perception/
COPY ./src/moa/moa_description /ws/src/moa/moa_description
COPY ./src/moa/moa_msgs /ws/src/moa/moa_msgs
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

# install ros2 packages
RUN cd /ws/src/ && \
git clone --recursive https://github.com/stereolabs/zed-ros2-wrapper.git && \
cd .. && \
source /opt/ros/humble/setup.bash && \
rosdep update && apt-get update && \
rosdep install --from-paths src -y -r --ignore-src --rosdistro=$ROS_DISTRO --os=ubuntu:jammy && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
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 cd /usr/local/zed && \
pip install requests && \
python3 get_python_api.py
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 \
--cmake-args ' -DCMAKE_BUILD_TYPE=Release' \
' -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs' \
' -DCMAKE_CXX_FLAGS="-Wl,--allow-shlib-undefined"'

RUN echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc && \
echo "source /ws/install/setup.bash" >> ~/.bashrc

RUN . ~/.bashrc
--event-handlers console_direct+ --base-paths src

CMD ["bash"]
CMD [ "bash" ]
74 changes: 49 additions & 25 deletions .devcontainer/zed.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM stereolabs/zed:4.0-tools-devel-l4t-r35.4
FROM stereolabs/zed:4.1-tools-devel-l4t-r35.4
LABEL Name=zed_sdk Version=0.0.1

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

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


WORKDIR /ws

Expand All @@ -22,7 +25,22 @@ RUN apt update && apt install curl -y && \
tee /etc/apt/sources.list.d/ros2.list > /dev/null

# setup timezone & install packages
RUN apt-get update && apt-get install -q -y --no-install-recommends \
RUN apt-get update
RUN sudo apt-get upgrade -y
RUN apt-get update


RUN sudo apt-get install ros-humble-desktop -y

RUN apt-get install -q -y --no-install-recommends \
RUN apt-get update
RUN sudo apt-get upgrade -y
RUN apt-get update


RUN sudo apt-get install ros-humble-desktop -y

RUN apt-get install -q -y --no-install-recommends \
tzdata \
dirmngr \
gnupg2 \
Expand All @@ -32,46 +50,52 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
python3-colcon-common-extensions \
python3-colcon-mixin \
python3-rosdep \
python3-vcstool && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
python3-vcstool
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get clean

ENV ROS_DISTRO humble

ENV ROS_DISTRO humble
# install ros2 packages
RUN cd /ws/src/
RUN git clone --recursive https://github.com/stereolabs/zed-ros2-wrapper.git

# setup colcon mixin and metadata
RUN rosdep init && \
rosdep update --rosdistro $ROS_DISTRO && \
colcon mixin add default \
https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml && \
colcon mixin update && \
colcon metadata add default \
https://raw.githubusercontent.com/colcon/colcon-metadata-repository/master/index.yaml && \
colcon metadata update

COPY ./src/perception/ /ws/src/perception/
COPY ./src/moa/moa_description /ws/src/moa/moa_description
COPY ./src/moa/moa_msgs /ws/src/moa/moa_msgs
RUN rosdep init
RUN rosdep update --rosdistro $ROS_DISTRO
RUN colcon mixin add default \
https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
RUN colcon mixin update
RUN colcon metadata add default \
https://raw.githubusercontent.com/colcon/colcon-metadata-repository/master/index.yaml
RUN colcon metadata update

# install ros2 packages
RUN cd /ws/src/ && \
RUN mkdir src && \
cd /ws/src/ && \
git clone --recursive https://github.com/stereolabs/zed-ros2-wrapper.git && \
cd .. && \
source /opt/ros/humble/setup.bash && \
rosdep update && apt-get update && \
rosdep install --from-paths src -y -r --ignore-src --rosdistro=$ROS_DISTRO --os=ubuntu:jammy && \
rosdep update && \
apt-get update && \
rosdep install --from-paths src -y -r --ignore-src --rosdistro=$ROS_DISTRO --os=ubuntu:jammy --skip-keys="point_cloud_transport_plugins draco_point_cloud_transport" || true && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean

RUN cd /usr/local/zed && \
pip install requests && \
python3 get_python_api.py
pip install requests
# python3 get_python_api.py \
# pip3 install ultralytics \
# pip3 install torch \
# pip3 install pyopengl \
# pip3 install pyzed

RUN source /opt/ros/humble/setup.bash && \
colcon build --parallel-workers $(nproc) --symlink-install \
--event-handlers console_direct+ --base-paths src \
--cmake-args ' -DCMAKE_BUILD_TYPE=Release' \
' -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs' \
' -DCMAKE_CXX_FLAGS="-Wl,--allow-shlib-undefined"'
' -DCMAKE_CXX_FLAGS="-Wl,--allow-shlib-undefined"' || true

RUN echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc && \
echo "source /ws/install/setup.bash" >> ~/.bashrc
Expand Down
6 changes: 2 additions & 4 deletions .docker_templates/docker-compose.CPU.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ services:

autonomous_zed:
image: zed_sdk

privileged: true

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

environment:
- DISPLAY
Expand Down
6 changes: 5 additions & 1 deletion .docker_templates/zed.Dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM stereolabs/zed:4.0-devel-cuda12.1-ubuntu22.04
FROM stereolabs/zed:4.1-devel-cuda12.1-ubuntu22.04
LABEL Name=zed_sdk Version=0.0.1

SHELL [ "/bin/bash", "-c" ]
Expand Down Expand Up @@ -68,4 +68,8 @@ RUN source /opt/ros/humble/setup.bash && \

RUN echo "source /ws/install/setup.bash" >> ~/.bashrc

RUN . ~/.bashrc

COPY ./.devcontainer/SN31421864.conf /usr/local/zed/settings/SN31421864.conf

CMD ["bash"]
Loading
Loading