Welcome to Realsense Depth Camera repository
2.0 How to use camera
How to Use Intel RealSense Camera
Official Website: https://www.intel.com/content/www/us/en/ark/products/series/85364/intel-realsense-cameras.html
Installation: https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md
Wiki: http://wiki.ros.org/RealSense
realsense2_camera: http://wiki.ros.org/realsense2_camera
librealsense2: http://wiki.ros.org/librealsense2
librealsense: https://github.com/IntelRealSense/librealsense
realsense-ros: https://github.com/IntelRealSense/realsense-ros
Note: If you need to quickly use the Intel camera, you can directly use the virtual machine in the attachments. There is no need to set up the environment below. The virtual machine provided in the attachments can run all the cases in the tutorial.
1、SDK + ROS
Note: The librealsense version is v3.10; the realsense_ros version is 2.3.1.
Install dependencies
xxxxxxxxxxsudo apt install ros-melodic-ddynamic-reconfigure ros-melodic-realsense2-camera ros-melodic-realsense2-description git libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev libglfw3-dev
Install Intel® RealSense™ SDK 2.0
xxxxxxxxxxmkdir -p librealsensecd librealsense/git clone -b v2.48.0 https://github.com/IntelRealSense/librealsense.gitcd librealsense./scripts/setup_udev_rules.shmkdir build && cd buildcmake ..make -j8sudo make install
RealSense Viewer
xxxxxxxxxxrealsense-viewer

You can measure in 3D mode, as shown in the figure. The error from the actual 1 meter is negligible.
Install Intel® RealSense™ ROS from source
xxxxxxxxxxmkdir -p ~/realsense_ros/srccd ~/realsense_ros/src/git clone -b 2.3.1 https://github.com/IntelRealSense/realsense-ros.gitcd realsense-ros/realsense2_cameragit checkout `git tag | sort -V | grep -P "^\d+\.\d+\.\d+" | tail -1`// Buildcd ~/realsense_roscatkin_makeecho "source ~/realsense_w/devel/setup.bash" >> ~/.bashrcsource ~/.bashrcStart the camera
xxxxxxxxxxroslaunch realsense2_camera rs_camera.launch
2、Web Monitoring
Environment setup
xxxxxxxxxxsudo apt-get install ros-melodic-async-web-server-cpp ros-melodic-web-video-server ros-melodic-usb-cam
Start the camera
xxxxxxxxxxroslaunch realsense2_camera rs_camera.launch
Start web_video_server
xxxxxxxxxxrosrun web_video_server web_video_serverView
View via local web browser:http://localhost:8080/For other devices on the same LAN:http://192.168.2.103:8080/(192.168.2.103 is the IP address of this host)Note: It is recommended to use Google Chrome or mobile QQ browser. Other browsers may fail to display images.