From 9188234a8aa5eed9244dd3f0724fdc9c07cd98f1 Mon Sep 17 00:00:00 2001 From: Mukilan Karthikeyan <47691192+MukilanKarthikeyan@users.noreply.github.com> Date: Tue, 16 Sep 2025 17:25:12 -0400 Subject: [PATCH 1/3] Update docker.md for Nvidia GPUs --- setup_instructons/docker.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup_instructons/docker.md b/setup_instructons/docker.md index 8661da2b..268dd422 100644 --- a/setup_instructons/docker.md +++ b/setup_instructons/docker.md @@ -133,6 +133,15 @@ sudo apt update sudo apt upgrade ``` +If you have a Nvidia GPU you an install the following if you want any accelerations: +```bash +curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg && \ +curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ +sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ +sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list && \ +sudo apt-get update +``` + ## Software Training Support Library Download > **_NOTE_** bash script should have installed stsl and software training old, if you can not find the directory then install them manually/ move stsl into `/training_ws/src` From 22805c55e9a0b6801c8ade8f11861b32db936581 Mon Sep 17 00:00:00 2001 From: Mukilan Karthikeyan <47691192+MukilanKarthikeyan@users.noreply.github.com> Date: Thu, 18 Sep 2025 20:34:10 -0400 Subject: [PATCH 2/3] Update docker.md for minor syntax --- setup_instructons/docker.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/setup_instructons/docker.md b/setup_instructons/docker.md index 268dd422..0d850a68 100644 --- a/setup_instructons/docker.md +++ b/setup_instructons/docker.md @@ -93,7 +93,7 @@ Our installation script will: 1. Run the script ```bash - bash setup.sh + bash ./setup.sh ``` @@ -144,9 +144,9 @@ sudo apt-get update ## Software Training Support Library Download -> **_NOTE_** bash script should have installed stsl and software training old, if you can not find the directory then install them manually/ move stsl into `/training_ws/src` +> **_NOTE_** bash script should have installed stsl and software training old, if you can not find the directory then install them manually/ move stsl into `./training_ws/src` ```bash -cd /training_ws/src +cd ./training_ws/src ``` ```bash git clone https://github.com/RoboJackets/stsl.git @@ -155,7 +155,7 @@ git clone https://github.com/RoboJackets/stsl.git ## Install ROS Dependencies ```bash -cd /training_ws +cd ./training_ws rosdep update && rosdep install --from-paths src --ignore-src -r -y ``` @@ -163,7 +163,7 @@ rosdep update && rosdep install --from-paths src --ignore-src -r -y ## Colcon Build 1. Navigate to training_ws ```bash - cd /training_ws + cd ./training_ws ``` 1. Run Colcon @@ -171,14 +171,15 @@ rosdep update && rosdep install --from-paths src --ignore-src -r -y colcon build ``` > **_NOTE_** if this is failing: -> 1. check that `stsl` exists in the directory `/training_ws/src` +> 1. check that `stsl` exists in the directory `./training_ws/src` +> 1. make sure you only have one version of stsl within your `rj_trianing_container` > 1. run `source `/opt/ros/humble/setup.bash` > 1. make sure the rosdep command ran sucessfully > 1. make sure you have enough RAM available 1. source the result for future projects ```bash - source install/setup.bash + source ./install/setup.bash ``` # You've set up your enviornemnt. Congratulations! From a7aa1a2fb00a6301901639166af9160a1d6e75b2 Mon Sep 17 00:00:00 2001 From: Mukilan Karthikeyan <47691192+MukilanKarthikeyan@users.noreply.github.com> Date: Thu, 25 Sep 2025 14:19:39 -0400 Subject: [PATCH 3/3] Updating an out of date setup step --- setup_instructons/docker.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/setup_instructons/docker.md b/setup_instructons/docker.md index 0d850a68..f77ecb1a 100644 --- a/setup_instructons/docker.md +++ b/setup_instructons/docker.md @@ -47,11 +47,6 @@ Search for and install the following extensions in VS Code [Install Git using the instructions here](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) -1. clone this repo - ```bash - git clone https://github.com/RoboJackets/software-training.git - ``` - ## 4. Create directory to mount container The docker container is essentially a self-contained instance of Ubuntu 22.04, with access to any files in the directory you mount it in. We do this so the container can see the repositories you clone locally, that way both local development and containerized testing can be done seamlessly.