feat: 初始化 Go2 导航相关代码与配置
This commit is contained in:
55
unitree_ros2/.devcontainer/docker-compose.yml
Executable file
55
unitree_ros2/.devcontainer/docker-compose.yml
Executable file
@@ -0,0 +1,55 @@
|
||||
version: '3'
|
||||
services:
|
||||
devcontainer-humble:
|
||||
volumes:
|
||||
- ..:/workspace:cached
|
||||
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
||||
- /mnt/wslg:/mnt/wslg
|
||||
- /root/.gazebo/models/:/root/.gazebo/models/
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- $HOME/.Xauthority:/tmp/.Xauthority:rw
|
||||
environment:
|
||||
- DISPLAY=${DISPLAY}
|
||||
- XAUTHORITY=/tmp/.Xauthority
|
||||
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
||||
command: /bin/sh -c "while sleep 1000; do :; done"
|
||||
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-humble
|
||||
# image: ros2-humble-dev:latest
|
||||
|
||||
# run `cd .devcontainer/ && docker build . -t ros2-humble-dev:latest -f Dockerfile-humble`
|
||||
# to use the development environment, or you can build it with Dockerfile.
|
||||
# Perhaps Unitree will provide a dockerhub image later to save you time compiling.
|
||||
privileged: true
|
||||
network_mode: "host"
|
||||
devcontainer-foxy:
|
||||
volumes:
|
||||
- ..:/workspace:cached
|
||||
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
||||
- /mnt/wslg:/mnt/wslg
|
||||
- /root/.gazebo/models/:/root/.gazebo/models/
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- $HOME/.Xauthority:/tmp/.Xauthority:rw
|
||||
environment:
|
||||
- DISPLAY=${DISPLAY}
|
||||
- XAUTHORITY=/tmp/.Xauthority
|
||||
|
||||
cap_add:
|
||||
- SYS_PTRACE
|
||||
command: /bin/sh -c "while sleep 1000; do :; done"
|
||||
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-foxy
|
||||
# image: ros2-foxy-dev:latest
|
||||
|
||||
# run `cd .devcontainer/ && docker build . -t ros2-humble-dev:latest -f Dockerfile-humble`
|
||||
# to use the development environment, or you can build it with Dockerfile.
|
||||
# Perhaps Unitree will provide a dockerhub image later to save you time compiling.
|
||||
|
||||
privileged: true
|
||||
network_mode: "host"
|
||||
Reference in New Issue
Block a user