Add devcontainer

This commit is contained in:
Matt Spencer
2026-07-13 09:42:48 +00:00
parent f5c6fa19ac
commit 759f77f58a
5 changed files with 212 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
{
"name": "ROS 2 Jazzy",
"privileged": true,
"remoteUser": "${localEnv:USER}",
"build": {
"context": "../..",
"dockerfile": "Dockerfile.jazzy",
"args": {
"USERNAME": "${localEnv:USER}"
}
},
"workspaceFolder": "/workspaces/agv_pro_ros2",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"anthropic.claude-code"
]
}
},
"containerEnv": {
"DISPLAY": ":0",
"ROS_AUTOMATIC_DISCOVERY_RANGE": "SUBNET",
"ROS_DOMAIN_ID": "0",
"RMW_IMPLEMENTATION": "rmw_cyclonedds_cpp",
"CYCLONEDDS_URI": "/workspaces/agv_pro_ros2/.devcontainer/cyclonedds.xml"
},
"runArgs": [
"--network=robot-sim",
"--pid=host",
"--ipc=host",
"-e",
"DISPLAY=${env:DISPLAY}"
],
"mounts": [
"source=/tmp/.X11-unix,target=/tmp/.X11-unix,type=bind,consistency=cached",
"source=/dev/dri,target=/dev/dri,type=bind,consistency=cached",
"source=/usr/local/share/ca-certificates,target=/usr/local/share/host-certificates,type=bind,consistency=cached",
"source=${localEnv:HOME}/.ssh,target=/home/${localEnv:USER}/.ssh,type=bind,consistency=cached"
],
"postCreateCommand": "bash .devcontainer/post-create.sh"
}