Skip to content

Commit

Permalink
Merge pull request #43 from fbrand-new/develop
Browse files Browse the repository at this point in the history
Ros2 isolation and Openpose dockerfile temp fix
  • Loading branch information
elandini84 authored Oct 12, 2023
2 parents 888a0b6 + 5d9d3f4 commit 099dcfd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions docker_stuff/docker_mng_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ STABLE_SUFFIX="stable"
REPO_DEF="elandini84/r1images"
JUNCTION="_"
REPO_SEP=":"
ROS_DOMAIN_ID=37 #The number should be between 0-101 (https://docs.ros.org/en/iron/Concepts/Intermediate/About-Domain-ID.html#overview)
6 changes: 5 additions & 1 deletion docker_stuff/docker_openPose/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ RUN git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose && \
RUN cd $user1_home/openpose && \
mkdir build && \
cd ./build && \
cmake .. -DDOWNLOAD_HAND_MODEL=OFF -DUSE_CUDNN=OFF && \
# Right now the following does not work.
# https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/2233
# You have to download the weights manually
# cmake .. -DDOWNLOAD_HAND_MODEL=OFF -DUSE_CUDNN=OFF && \
cmake .. -DDOWNLOAD_HAND_MODEL=OFF -DDOWNLOAD_BODY_25_MODEL=OFF -DDOWNLOAD_FACE_MODEL=OFF -DUSE_CUDNN=OFF && \
make -j11
ENV openpose_ROOT=$user1_home/openpose

Expand Down
4 changes: 2 additions & 2 deletions docker_stuff/docker_sim2/manage-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ if [[ $GONNA_BUILD == "true" ]]; then
else
sudo xhost +
if [[ $RUN_WITH_GPU == "true" ]]; then
sudo docker run --rm -it --privileged --network host --pid host -e NVIDIA_DRIVER_CAPABILITIES=all -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -e QT_X11_NO_MITSHM=1 --gpus all $COMPLETE_IMAGE_NAME
sudo docker run --rm -it --privileged --network host --pid host -e NVIDIA_DRIVER_CAPABILITIES=all -e DISPLAY -e ROS_DOMAIN_ID=${ROS_DOMAIN_ID} -v /tmp/.X11-unix:/tmp/.X11-unix -e QT_X11_NO_MITSHM=1 --gpus all $COMPLETE_IMAGE_NAME
elif [[ $RUN_WITH_GPU == "false" && $IMAGE == $UBUNTU_DEF ]]; then
sudo docker run --rm -it --privileged --network host --pid host -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -e QT_X11_NO_MITSHM=1 $COMPLETE_IMAGE_NAME
sudo docker run --rm -it --privileged --network host --pid host -e DISPLAY -e ROS_DOMAIN_ID=${ROS_DOMAIN_ID} -v /tmp/.X11-unix:/tmp/.X11-unix -e QT_X11_NO_MITSHM=1 $COMPLETE_IMAGE_NAME
else
echo "ERROR: You cannot run a nVidia based image without gpu support"
fi
Expand Down

0 comments on commit 099dcfd

Please sign in to comment.