Skip to content

Commit

Permalink
feat(turtlebot3_ws): Sync with latest template
Browse files Browse the repository at this point in the history
  • Loading branch information
j3soon committed Jan 6, 2025
1 parent a879692 commit 5115dd0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
6 changes: 0 additions & 6 deletions turtlebot3_ws/docker/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ fi
# TODO: Source other workspace environments as underlay
# Use turtlebot3 burger by default
export TURTLEBOT3_MODEL=burger
# Set Isaac Sim environment variables
# Ref: https://docs.omniverse.nvidia.com/isaacsim/latest/installation/install_python.html#running-isaac-sim
# Ref: https://github.com/NVIDIA-Omniverse/IsaacSim-dockerfiles/blob/e3c09375c2d110b39c3fab3611352870aa3ce6ee/Dockerfile.2023.1.0-ubuntu22.04#L49-L53
export OMNI_USER=admin
export OMNI_PASS=admin
export OMNI_KIT_ACCEPT_EULA=YES
# Source workspace environment
source $ROS2_WS/install/setup.bash
echo "Successfully built workspace and configured environment variables."
21 changes: 21 additions & 0 deletions turtlebot3_ws/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,27 @@ RUN --mount=type=cache,target=/home/$USERNAME/.cache/pip,sharing=private \
&& pip install isaacsim-extscache-physics==4.2.0.2 isaacsim-extscache-kit==4.2.0.2 isaacsim-extscache-kit-sdk==4.2.0.2 --extra-index-url https://pypi.nvidia.com; \
fi

# Fix SciPy (in base image) incompatibility with NumPy version (in Isaac Sim) `numpy==1.26.0`.
RUN pip install scipy==1.14.1 numpy==1.26.0

# Create isaac sim cache directory with correct ownership to avoid permission issues after volume mount
RUN sudo mkdir -p /isaac-sim/kit/cache \
&& sudo chown -R $USERNAME:$USERNAME /isaac-sim/kit/cache
RUN mkdir -p /home/$USERNAME/.cache/ov \
&& mkdir -p /home/$USERNAME/.cache/pip \
&& mkdir -p /home/$USERNAME/.cache/nvidia/GLCache \
&& mkdir -p /home/$USERNAME/.nv/ComputeCache \
&& mkdir -p /home/$USERNAME/.nvidia-omniverse/logs \
&& mkdir -p /home/$USERNAME/.local/share/ov/data \
&& mkdir -p /home/$USERNAME/Documents

# Set Isaac Sim environment variables
# Ref: https://docs.omniverse.nvidia.com/isaacsim/latest/installation/install_python.html#running-isaac-sim
# Ref: https://github.com/NVIDIA-Omniverse/IsaacSim-dockerfiles/blob/e3c09375c2d110b39c3fab3611352870aa3ce6ee/Dockerfile.2023.1.0-ubuntu22.04#L49-L53
ENV OMNI_USER=admin
ENV OMNI_PASS=admin
ENV OMNI_KIT_ACCEPT_EULA=YES

# Install custom tools
RUN --mount=type=cache,target=/var/cache/apt,sharing=private \
sudo apt-get update && sudo apt-get install -y \
Expand Down
3 changes: 3 additions & 0 deletions turtlebot3_ws/docker/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ services:
# Reference: https://docs.docker.com/compose/compose-file/build/#platforms
# platforms:
# - "linux/arm64"
cache_from:
- j3soon/ros2-turtlebot3-ws:buildcache-amd64
- j3soon/ros2-turtlebot3-ws:buildcache-arm64
image: j3soon/ros2-turtlebot3-ws
container_name: ros2-turtlebot3-ws
stdin_open: true
Expand Down

0 comments on commit 5115dd0

Please sign in to comment.