Skip to content

Commit

Permalink
doc: add params info
Browse files Browse the repository at this point in the history
  • Loading branch information
ChandimaFernando committed Apr 10, 2024
1 parent 4c36b09 commit 6b3f0fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 0 additions & 4 deletions docker/azure-kinect/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,3 @@ RUN /bin/bash -c ". /opt/ros/humble/setup.bash && colcon build"

# Set display
ENV DISPLAY :1

# VNC viewer
EXPOSE 5905

8 changes: 5 additions & 3 deletions docker/azure-kinect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ podman build -t azure-kinect:latest .

Following command executes the image without opening up the network to the host network:
```bash
podman run -it --privileged -p 5905:5905 azure-kinect:latest /bin/bash -c "Xvfb :1 -screen 0 2560x1440x16 & . /opt/ros/humble/setup.bash && . /root/ws/install/setup.sh && ros2 launch azure_kinect_ros_driver driver.launch.py"
podman run -it --privileged azure-kinect:latest /bin/bash -c "Xvfb :1 -screen 0 2560x1440x16 & . /opt/ros/humble/setup.bash && . /root/ws/install/setup.sh && ros2 launch azure_kinect_ros_driver driver.launch.py"
```

Following command executes the image opening up a the container to the host network. This needs testing
```bash
podman run -it --privileged -p 5905:5905 --network host --ipc=host --pid=host azure-kinect:latest /bin/bash -c "Xvfb :1 -screen 0 2560x1440x16 & . /opt/ros/humble/setup.bash && . /root/ws/install/setup.sh && ros2 launch azure_kinect_ros_driver driver.launch.py"
```
podman run -it --privileged --network host --ipc=host --pid=host azure-kinect:latest /bin/bash -c "Xvfb :2 -screen 0 2560x1440x16 & . /opt/ros/humble/setup.bash && . /root/ws/install/setup.sh && ros2 launch azure_kinect_ros_driver driver.launch.py && bash"
```

A number of parameters with respect to the Kinect camera can be set via driver.launch.py. Refer [this link](https://github.com/microsoft/Azure_Kinect_ROS_Driver/blob/6ffb95a56ee175e5020b5ee5983d7230befbb176/docs/usage.md) for the complete list of options.

0 comments on commit 6b3f0fc

Please sign in to comment.