Skip to content
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

Workspace with ZED for Simulation and Real Camera #25

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
d508895
Create zed_ws.
YuZhong-Chen Dec 30, 2023
85a3fb9
Clone zed-ros2-wrapper.
YuZhong-Chen Dec 30, 2023
0c2179c
Update Dockerfile base image to ZED.
YuZhong-Chen Dec 30, 2023
6f98159
Enable GPU access within the container.
YuZhong-Chen Jan 19, 2024
ac9d5c3
Clone zed-ros2-examples.
YuZhong-Chen Dec 30, 2023
bb504a6
Install ros2 humble in Dockerfile.
YuZhong-Chen Dec 30, 2023
da913ff
Clone zed gazebo settings.
YuZhong-Chen Jan 17, 2024
8beebb4
Remove the link in ZED urdf.
YuZhong-Chen Jan 17, 2024
65790cf
Add the tag `inertial` in ZED urdf.
YuZhong-Chen Jan 17, 2024
14b8901
Update the Dockerfile to include ZED dependencies.
YuZhong-Chen Jan 19, 2024
497d322
Change the ownership of the ZED folder.
YuZhong-Chen Jan 19, 2024
718acdd
Update compose.yaml to mount devices.
YuZhong-Chen Jan 19, 2024
4edff3f
Add the Gazebo plugin for ZED.
YuZhong-Chen Jan 19, 2024
7f8de9e
Integrate the launch settings for Gazebo.
YuZhong-Chen Jan 19, 2024
cbb77e3
Adjust the parameters in the Gazebo settings.
YuZhong-Chen Jan 19, 2024
f421584
Tweak the camera distortion parameters.
YuZhong-Chen Jan 19, 2024
3567e54
Update README.md
YuZhong-Chen Jan 19, 2024
1cf5737
Add Dockerfile for Isaac Sim.
YuZhong-Chen Feb 3, 2024
c64d89d
Add the Docker Compose settings for Isaac Sim.
YuZhong-Chen Feb 3, 2024
5bc3e85
Add gitkeep files for Isaac Sim cache.
YuZhong-Chen Feb 3, 2024
8a7b136
Install ROS2 Humble in Isaac Sim container.
YuZhong-Chen Feb 3, 2024
2a09afb
Install ZED SDK in Isaac Sim container.
YuZhong-Chen Feb 3, 2024
f47dc4c
Fix permissions and handle special cases in Dockerfile.
YuZhong-Chen Feb 3, 2024
df2e5d3
Clone zed-isaac-sim.
YuZhong-Chen Feb 3, 2024
66abdb4
Alter the ownership of the mounted folders.
YuZhong-Chen Feb 3, 2024
b6365ad
Fix permissions of the Isaac Sim.
YuZhong-Chen Feb 3, 2024
db1ec09
Add an example for Isaac Sim.
YuZhong-Chen Feb 3, 2024
7a446d6
Modify the ROS2 environment variables and provide additional comments…
YuZhong-Chen Feb 3, 2024
6c82dbd
Activate the Isaac Sim feature in zed-ros2-wrapper.
YuZhong-Chen Feb 3, 2024
b30e5cb
Update README.md
YuZhong-Chen Feb 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions zed_ws/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"name": "zed-ws",
"dockerComposeFile": "../docker/compose.yaml",
"service": "zed-ws",
"runServices": [
"zed-ws"
],
// workspace settings
"workspaceFolder": "/home/ros2-agv-essentials/zed_ws",
// Vscode extensions
Expand Down
50 changes: 49 additions & 1 deletion zed_ws/docker/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
version: '3'
services:
zed-ws:
build: .
build:
context: .
dockerfile: Dockerfile
image: j3soon/ros2-zed-ws
container_name: ros2-zed-ws
stdin_open: true
Expand Down Expand Up @@ -49,3 +51,49 @@ services:
# "source=${localWorkspaceFolder}/../cache/humble/log,target=/home/ws/log,type=bind"
# Mount workspace
- ../..:/home/ros2-agv-essentials
zed-isaac-sim:
YuZhong-Chen marked this conversation as resolved.
Show resolved Hide resolved
build:
context: .
dockerfile: Dockerfile.isaac-sim
image: j3soon/ros2-zed-isaac-sim
container_name: ros2-zed-isaac-sim
YuZhong-Chen marked this conversation as resolved.
Show resolved Hide resolved
stdin_open: true
tty: true
privileged: true
entrypoint: bash
network_mode: host
working_dir: /isaac-sim
user: ubuntu
environment:
- DISPLAY=${DISPLAY}
- ACCEPT_EULA=Y
- PRIVACY_CONSENT=Y
# If you want to access GPU, please uncomment the lines below.
# Reference : https://docs.docker.com/compose/gpu-support/
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [ gpu ]
volumes:
# Mount local timezone into container. ( Readonly )
# Reference: https://stackoverflow.com/questions/57607381/how-do-i-change-timezone-in-a-docker-container
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
# Mount X11 server
- /tmp/.X11-unix:/tmp/.X11-unix
# Mount device
- /dev:/dev
# Mount Isaac Sim Cache
- ./cache/kit:/isaac-sim/kit/cache
- ./cache/ov:/home/ubuntu/.cache/ov
- ./cache/pip:/home/ubuntu/.cache/pip
- ./cache/glcache:/home/ubuntu/.cache/nvidia/GLCache
- ./cache/computecache:/home/ubuntu/.nv/ComputeCache
- ./cache/logs:/home/ubuntu/.nvidia-omniverse/logs
- ./cache/data:/home/ubuntu/.local/share/ov/data
- ./cache/documents:/home/ubuntu/Documents
# Mount workspace
- ../..:/home/ros2-agv-essentials