File tree 5 files changed +18
-11
lines changed
simulation/isaac-sim/docker
5 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 1
- PROJECT_NAME = airstack
2
- PROJECT_VERSION = 1.0.0
1
+ PROJECT_NAME = " airstack"
2
+ PROJECT_VERSION = " 1.0.0"
3
3
# can replace with your docker hub username
4
- PROJECT_DOCKER_REGISTRY = " airlab-storage.andrew.cmu.edu:5001/shared"
4
+ PROJECT_DOCKER_REGISTRY = " airlab-storage.andrew.cmu.edu:5001/shared"
5
+ DEFAULT_ISAAC_SCENE = " omniverse://airlab-storage.andrew.cmu.edu:8443/Projects/AirStack/fire_academy.scene.usd"
6
+ PLAY_SIM_ON_START = " true"
Original file line number Diff line number Diff line change @@ -84,8 +84,7 @@ xhost + # allow docker access to X-Server
84
84
docker compose up -d
85
85
```
86
86
87
- Then open the stage from the Nucleus server:
88
- ` airlab-storage.andrew.cmu.edu:8443/Projects/AirStack/neighborhood.scene.usd `
87
+ This will automatically launch and play the Isaac scene specified under ` AirStack/.env ` (default is the Fire Academy).
89
88
90
89
## Move Robot
91
90
Original file line number Diff line number Diff line change 2
2
services :
3
3
# ===================================================================================================================
4
4
# for developing locally on a single machine
5
- robot_sim :
5
+ # note, this service name is currently used as the name of the robot
6
+ robot :
6
7
profiles :
7
8
- " "
8
9
- sitl
Original file line number Diff line number Diff line change 1
1
# expects context to be the root of the repository, i.e. AirStack/. this is so we can access AirStack/ros_ws/
2
- FROM nvcr.io/nvidia/isaac-sim:4.1 .0
2
+ FROM nvcr.io/nvidia/isaac-sim:4.2 .0
3
3
4
4
WORKDIR /isaac-sim
5
5
6
+ # isaac's ros2 launch run_isaacsim.launch.py hardcodes to search in this path, so we have to put the executables here
7
+ RUN mkdir -p /root/.local/share/ov/pkg/
8
+ RUN ln -s /isaac-sim /root/.local/share/ov/pkg/isaac-sim-4.2.0
9
+ # allows us to run isaac-sim as root
10
+ ENV OMNI_KIT_ALLOW_ROOT=1
11
+
6
12
# setup timezone
7
13
RUN echo 'Etc/UTC' > /etc/timezone && \
8
14
ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
Original file line number Diff line number Diff line change @@ -10,9 +10,8 @@ services:
10
10
entrypoint : " " # override the default entrypoint with nothing
11
11
# for some reason the tmux session manager only works when isaac is running in tmux
12
12
command : >
13
- bash -c "
14
- tmux new -d -s isaac
15
- && tmux send-keys -t isaac 'runapp' ENTER
13
+ bash -c " tmux new -d -s isaac
14
+ && tmux send-keys -t isaac \"ros2 launch isaacsim run_isaacsim.launch.py gui:=${DEFAULT_ISAAC_SCENE} play_sim_on_start:=${PLAY_SIM_ON_START}\" ENTER
16
15
&& sleep infinity"
17
16
# Interactive shell
18
17
stdin_open : true # docker run -i
@@ -53,7 +52,7 @@ services:
53
52
- ~/docker/isaac-sim/logs:/root/.nvidia-omniverse/logs:rw
54
53
- ~/docker/isaac-sim/data:/root/.local/share/ov/data:rw
55
54
- ~/docker/isaac-sim/documents:/root/Documents:rw
56
- - ./user.config.json:/root/.local/share/ov/data/Kit/Isaac-Sim/4.1 /user.config.json:rw
55
+ - ./user.config.json:/root/.local/share/ov/data/Kit/Isaac-Sim/4.2 /user.config.json:rw
57
56
- ./ui.py:/isaac-sim/kit/exts/omni.kit.widget.nucleus_connector/omni/kit/widget/nucleus_connector/ui.py:rw
58
57
# developer stuff
59
58
- .dev:/root/.dev:rw # developer config
You can’t perform that action at this time.
0 commit comments