Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
documentation:containers [2023/03/06 14:51] – [ROS Containers Quickstart] marcusk | documentation:containers [2024/06/19 07:32] (current) – marcusk | ||
---|---|---|---|
Line 61: | Line 61: | ||
</ | </ | ||
- | Both above requires your user to have '' | + | Both above requires your user to have '' |
+ | |||
+ | If you intend to run this with a real robot: | ||
+ | < | ||
+ | make use-real | ||
+ | </ | ||
+ | This adds '' | ||
More options are available in the documentation: | More options are available in the documentation: | ||
Line 72: | Line 78: | ||
This will build the base image, a special user image where your user is known and mapped and finally a container to run it all in. | This will build the base image, a special user image where your user is known and mapped and finally a container to run it all in. | ||
- | By default your home directory is mapped to '' | + | By default your home directory is mapped to '' |
==== Resume and reset ==== | ==== Resume and reset ==== | ||
Line 85: | Line 91: | ||
</ | </ | ||
- | This command will resume your container.// | + | This command will resume your container. |
+ | // Note:// if the container is resumed in one terminal and you resume again, you will effectly use the same terminal interface in multiple terminals (they will be mirrored). | ||
Line 91: | Line 98: | ||
You should have succeeded in building the container and is inside it for below to work. | You should have succeeded in building the container and is inside it for below to work. | ||
- | === Build the Heron Workspace === | + | ==== Build the Heron Workspace |
<cli> | <cli> | ||
workspace init heron.rosinstall | workspace init heron.rosinstall | ||
Line 97: | Line 104: | ||
</ | </ | ||
- | === Run Heron simulation === | + | ==== Run Heron simulation |
Two terminals or tmux/start roscore in background: | Two terminals or tmux/start roscore in background: | ||
Line 117: | Line 124: | ||
===== Workspace Tips/Tricks ===== | ===== Workspace Tips/Tricks ===== | ||
- | === Using a custom rosinstall === | + | ==== Using a custom rosinstall |
Let say it is named '' | Let say it is named '' | ||
- | - Copy your '' | + | - Copy your '' |
- In your home directory, run '' | - In your home directory, run '' | ||
- This will clone all the repos described in '' | - This will clone all the repos described in '' | ||
Line 126: | Line 133: | ||
**Note:** '' | **Note:** '' | ||
- | === Switching branches === | + | ==== Switching branches |
By default '' | By default '' | ||
If you modify it, you can run '' | If you modify it, you can run '' | ||
+ | |||
+ | If you are using ROS2, it would be called '' | ||
**Note**: '' | **Note**: '' | ||
- | ==== WSL 2 GPU Drivers ==== | + | ====== Resources ====== |
+ | ===== WSL 2 GPU Drivers | ||
https:// | https:// | ||
- | ==== VS Code Workflow ==== | + | ===== VS Code Workflow |
- | The files in the home folder (in the container) are by default available in '' | + | The files in the home folder (in the container) are by default available in '' |
To attach your VS Code to the running Docker container, choose the Docker panel and right-click on the container to get a context menu. | To attach your VS Code to the running Docker container, choose the Docker panel and right-click on the container to get a context menu. |