You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development/docker_usage.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
# General Usage with Docker Compose
1
2
2
3
AirStack is designed for multi-robot development, and is setup to run multiple robots in simulation.
3
4
@@ -64,7 +65,7 @@ docker exec -it isaac-sim bash
64
65
`runapp` launches Isaac Sim.
65
66
The `--path` argument can be passed with a path to a `.usd` file to load a scene.
66
67
67
-
It can also be run in headless mode with `./runheadless.native.sh` to stream to Omniverse Streaming Client or `./runheadless.webrtc.sh` to stream to a web browser.
68
+
It can also be run in headless mode with `./runheadless.native.sh` to stream to [Omniverse Streaming Client](https://docs.omniverse.nvidia.com/streaming-client/latest/user-manual.html) or `./runheadless.webrtc.sh` to [stream to a web browser](https://docs.omniverse.nvidia.com/extensions/latest/ext_livestream/webrtc.html).
68
69
69
70
The container also has the isaacsim ROS2 package within that can be launched with `ros2 launch isaacsim run_isaacsim.launch.py`.
# optionally pass the --scale robot=N argument to start N robots
6
+
dc compose up -d # --scale robot=2
7
+
```
8
+
9
+
Open AirStack folder
10
+
11
+
```bash
12
+
cd AirStack
13
+
code .
14
+
```
15
+
16
+
Install the ["Dev Containers" extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
17
+
18
+
Now click the "Remote Explorer" icon on the left side bar, hover over a robot container, and attach to the container.
19
+
20
+

21
+
22
+
Install recommended extensions within the image. This installs the `ROS`, `C++`, and `Python` extensions in the container.
23
+

24
+
25
+
## Build ROS Workspace
26
+
Hit `Ctrl-Shift-B` to build the project. This is a shortcut for `bws --cmake-args '-DCMAKE_BUILD_TYPE=Debug'`, which adds debug symbols to the build.
27
+
28
+
Build tasks are defined in `.vscode/tasks.json`.
29
+
30
+
31
+
## Launch
32
+
33
+
Hit `F5` to launch `robot.launch.xml`, or click the "Run and Debug" button on the left side of the screen and click the green play button.
34
+
35
+
Launch tasks are defined in `.vscode/launch.json`.
36
+
37
+

38
+
39
+
You can now set breakpoints and debug as usual in VSCode.
40
+
41
+
42
+
!!! warning "Warning about file permissions"
43
+
44
+
Folders and files created within the attached docker container will be owned by root. This can cause issues when trying to edit files from the host machine, especially when using git to switch branches.
45
+
If you accidentally create files as root, you can change the owner to your user with the following command:
0 commit comments