The RealSense D400 series cameras by Intel are compact distance measuring devices primarily designed for short-range analysis, spanning up to 6 meters. Utilizing advanced deep vision technology and compact form factors, these cameras find applications across various domains including computer vision, augmented reality, robotics, and beyond.
To run the device, you must meet certain requirements listed below:
- Connectivity: USB 3.0*
* USB 2.0 is possible, but significantly limits performance.
In this demo, we'll walk you through using the RealSense camera with ROS 2 via a Docker image. You'll also learn how to visualize data, including image previews and point clouds, using RViz. Demo based on realsense-ros repository.
1. Plugin the device
For best performance please use USB 3.0 port, depend of the camera model. Then use
lsusb command to check if the device is visible.
2. Clone repository
git clone --branch ros2 https://github.com/husarion/realsense-docker.git
docker compose up
The RGBD (Red, Green, Blue, Depth) image is visible in the RViz2 tool.
The full API of the robot can be found in the official documentation of the device.
Depth cameras are essential for modern robotics, and RealSense cameras, known for their compact size, are an excellent choice for short-range tasks. They are also officially compatible with ROS 2 and continue to enhance their solutions for even better performance. Now you can use the acquired knowledge by creating a Tracker using the OpenCV library.
Do you need any support with completing this project or have any difficulties with software or hardware? Feel free to describe your thoughts on our community forum: https://community.husarion.com/ or to contact with our support: email@example.com