Herowaree

TGIF

Feb 3rd, 2023 (edited)
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
  2.  
  3. docker run --name open_rmf --gpus all -it -e DISPLAY=$DISPLAY osrf/ros:humble-desktop
  4.  
  5. New-Item -Path 'D:\temp\Test Folder' -ItemType Directory
  6.  
  7. apt install ros-humble-rmf-*
  8.  
  9. sudo apt-get install python3-pip
  10.  
  11. set-variable -name DISPLAY -value 150.165.167.44:0.0
  12.  
  13. docker build -t open_rmf_demos .
  14.  
  15. docker run -it -e DISPLAY=$DISPLAY --gpus all --name open_rmf_running open_rmf_demos
  16.  
  17. # Step 4: Install rest of OpenRMF binaires via rosdep
  18. CMD cd ~/rmf_demos_workspace
  19. CMD rosdep install --from-paths src --ignore-src --rosdistro humble -y
  20.  
  21. # Step 5: Build OpenRMF Demos workspace
  22. CMD source /opt/ros/humble/setup.bash
  23. CMD colcon build
  24.  
  25. Open a docker terminal
  26.  
  27. Get the image running as a container in the background: docker run -d -it <image_id>
  28.  
  29. Tip: docker ps will show the container_id that you just fired up from said image.
  30. Per @eltonStoneman's advice: docker exec -it <container_id> bash
  31. Now your docker terminal is showing an interactive terminal to the container.
  32. Open up another terminal and perform step 3 to create another interactive terminal to the container. (Rinse and Repeat)
  33.  
  34. https://docs.nvidia.com/ai-enterprise/deployment-guide-vmware/0.1.0/docker.html
  35.  
  36. https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/user-guide.html#gpu-enumeration
  37.  
  38. https://www.youtube.com/watch?v=cMsIT2otEjA
Advertisement
Add Comment
Please, Sign In to add comment