-
Notifications
You must be signed in to change notification settings - Fork 11
Jin/taxim cleanup #319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Jin/taxim cleanup #319
Changes from all commits
ce37e63
152afdd
d10cd51
0b6380e
84890b5
1f3a69d
855c223
240405c
a769104
cbccdf1
e6a0b3e
25d3772
15ae623
132aabf
bd560ef
1fab445
5771939
38e0000
6a27ad9
f76c77a
49f5565
0671b3e
706a868
0144e47
0931f92
c736087
3f34995
f3a6b73
cc9cce7
22fa5be
72d3ec8
9d178a8
015fbbe
02ef079
e06bf34
e5aafd8
549f288
8ff3578
10cad99
52654fe
086e4d0
804a823
9ebe4e6
b59f134
79ce2d2
bd27bf9
15d2693
ba1fd2d
4790f56
c02ace9
79626e5
6cf3e0f
8a2bf7e
8150ded
c57c151
c183ca8
2ccd738
a1ee01f
9680c1b
9d886b1
a477ac2
70464df
e78bed5
61d6784
3d6eb27
39497be
5b61a2e
5c44b8c
d171c27
307d7bd
5d0cbd7
1a4270c
fb1143e
a1e33a0
6c7ccaf
bc7511b
062360d
efee3d3
953051e
dbd89fe
f0834bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| { | ||
| "name": "rcs", | ||
| "build": { | ||
| "dockerfile": "../Dockerfile" | ||
| }, | ||
| "remoteUser": "vscode", | ||
| "runArgs": [ | ||
| "--gpus", | ||
| "all", | ||
| "--name", | ||
| "rcs", | ||
| "--ipc=host", | ||
| "--network=host", | ||
| "--env=DISPLAY=${localEnv:DISPLAY}", | ||
| "--env=XAUTHORITY=/tmp/.Xauthority", | ||
| "--volume=${localEnv:HOME}/.Xauthority:/tmp/.Xauthority:ro", | ||
| "--volume=/tmp/.X11-unix:/tmp/.X11-unix:rw" | ||
| ], | ||
| "shutdownAction": "stopContainer", | ||
| "postStartCommand": "bash -lc 'grep -qxF \"source /home/vscode/venv/bin/activate\" ~/.bashrc || echo \"source /home/vscode/venv/bin/activate\" >> ~/.bashrc'", | ||
| "customizations": { | ||
| "vscode": { | ||
| "settings": { | ||
| "terminal.integrated.defaultProfile.linux": "bash", | ||
| "python.defaultInterpreterPath": "/home/vscode/venv/bin/python" | ||
| }, | ||
| "extensions": [ | ||
| "charliermarsh.ruff", | ||
| "eamodio.gitlens", | ||
| "ms-python.debugpy", | ||
| "ms-python.python", | ||
| "ms-python.vscode-pylance", | ||
| "ms-python.vscode-python-envs", | ||
| "openai.chatgpt" | ||
| ] | ||
| } | ||
| }, | ||
| "mounts": [ | ||
| "source=/mnt/disk_air_fast_2/scannetpp,target=/workspaces/datasets,type=bind" | ||
| ], | ||
| } |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we already have a dockerfile under the docker folder, so can this docker file perhaps be merged with the existing one? |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # Chose the base image from https://hub.docker.com/ | ||
| FROM nvidia/cuda:13.1.2-cudnn-devel-ubuntu24.04 | ||
|
|
||
| # Set variables | ||
| ARG USERNAME=vscode | ||
| ARG USER_UID=1001 | ||
| ARG USER_GID=$USER_UID | ||
|
|
||
| # Avoid interactive dialog | ||
| ARG DEBIAN_FRONTEND=noninteractive | ||
| ENV TZ=Etc/UTC | ||
|
|
||
| # Create new user | ||
| RUN groupadd --gid $USER_GID $USERNAME \ | ||
| && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ | ||
| # | ||
| # [Optional] Add sudo support. Omit if you don't need to install software after connecting. | ||
| && apt-get update \ | ||
| && apt-get install -y sudo \ | ||
| && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ | ||
| && chmod 0440 /etc/sudoers.d/$USERNAME | ||
|
|
||
| # ******************************************************** | ||
| # * Anything else you want to do like clean up goes here * | ||
| # ******************************************************** | ||
|
|
||
| # For example, install python 3.12, git and curl | ||
| RUN apt-get install -y tzdata | ||
| RUN apt-get install -y software-properties-common | ||
| RUN add-apt-repository ppa:deadsnakes/ppa | ||
| RUN apt update && apt install -y python3.11 python3.11-venv python3.11-dev curl liblz4-dev git libgl1-mesa-dev cmake build-essential | ||
| RUN apt install -y ffmpeg ca-certificates cmake curl git libgl1 libglib2.0-0 libglfw3-dev libpoco-dev ninja-build liburdfdom-dev | ||
|
|
||
| # [Optional] Set the default user. Omit if you want to keep the default as root. | ||
| USER $USERNAME | ||
| WORKDIR /workspaces | ||
|
|
||
| # Install python dependencies and renderpy | ||
| COPY . /workspaces | ||
| RUN python3.11 -m venv /home/$USERNAME/venv | ||
| RUN /home/$USERNAME/venv/bin/pip install --upgrade pip | ||
| RUN /home/$USERNAME/venv/bin/pip install --upgrade setuptools wheel ninja setuptools>=45 scikit-build-core>=0.3.3 mujoco>=3.3.5 pin==3.7.0 pybind11 cmake | ||
| RUN /home/$USERNAME/venv/bin/pip install --no-build-isolation --no-cache-dir -ve . | ||
| RUN /home/$USERNAME/venv/bin/pip install --no-build-isolation --no-cache-dir -e extensions/rcs_sb3 | ||
| RUN /home/$USERNAME/venv/bin/pip install --no-build-isolation --no-cache-dir -e extensions/rcs_taxim | ||
| RUN cd norm2tex && /home/$USERNAME/venv/bin/pip install --no-build-isolation --no-cache-dir -e . |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # RCS Taxim Extension | ||
|
|
||
| This extension provides integration with the [Taxim](https://github.com/Robo-Touch/Taxim) tactile sensor simulator. | ||
|
|
||
| It ports the tactile pick-up example onto the current RCS scene/config stack by swapping in a TAXIM-equipped Franka hand while reusing the current FR3 pick setup. | ||
|
|
||
| ## Installation | ||
|
|
||
| ```shell | ||
| pip install -ve extensions/rcs_taxim | ||
| ``` |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So far we only have examples in the global examples folder, so to be consistent this file should go into |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| [build-system] | ||
| requires = ["setuptools"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "rcs_taxim" | ||
| version = "0.7.2" | ||
| description = "RCS integration of mujoco-taxim" | ||
| dependencies = [ | ||
| "rcs>=0.7.2", | ||
| "omegaconf", | ||
| "mujoco-taxim@git+https://github.com/utn-air/mujoco-taxim.git@norm2tex", | ||
| ] | ||
| readme = "README.md" | ||
| maintainers = [ | ||
| { name = "Tobias Jülg", email = "tobias.juelg@utn.de" }, | ||
| { name = "Seongjin Bien", email = "seongjin.bien@utn.de" }, | ||
| ] | ||
| authors = [{ name = "Seongjin Bien", email = "seongjin.bien@utn.de" }] | ||
| requires-python = ">=3.10" | ||
|
|
||
| [tool.black] | ||
| line-length = 120 | ||
| target-version = ["py310"] | ||
|
|
||
| [tool.isort] | ||
| profile = "black" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| __version__ = "0.7.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this file, looks like a local development file for dev containers.