forked from cram2/pycram
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from leonyi4/dev
Added Devcontainer config file
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# How to use Dev container | ||
|
||
- Install Docker and the 'Devcontainer' extension in VSCode | ||
|
||
- Clone the repository and open the folder in VSCode | ||
|
||
- Use `Ctrl/Cmd + Shift + P` to open the command palette | ||
|
||
- Select 'Dev containers: Rebuild and Reopen in Container' Option | ||
|
||
- Wait for the container to finish setting up | ||
|
||
- Type this command into the terminal `roslaunch pycram ik_and_description.launch` to start roscore | ||
|
||
- Note: Bullet world needs a display to be connected; the render mode needs to be set to direct when running on GitHub codespaces or on WindowOS; Otherwise, the kernel will crash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "PyCRAM vscode devcontainer", | ||
"image": "pycram/pycram:dev", | ||
"features": { | ||
"ghcr.io/devcontainers/features/git:1": {}, | ||
"ghcr.io/devcontainers/features/sshd:1": {} | ||
}, | ||
"postStartCommand": { | ||
"pip": "pip3 install ipykernel pyjpt", | ||
"git": "git config --global --add safe.directory '*'", | ||
"source setup": "./.devcontainer/script.sh" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"ms-toolsai.jupyter", | ||
"esbenp.prettier-vscode" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
source /opt/ros/overlay_ws/devel/setup.bash | ||
|
||
exec "$@" |