- Intel® RealSense™ Camera D400-Series
- Intel® RealSense™ Depth Cameras D415, D435 and D435i
- Intel® RealSense™ Tracking Camera T265
The following instructions were verified with ROS2 Dashing on Ubuntu 18.04.
1. Install ROS2 packages ros-dashing-desktop
Currently, we support librealsense master branch.
sudo apt-get install ros-dashing-cv-bridge ros-dashing-librealsense2 ros-dashing-message-filters ros-dashing-image-transport
sudo apt-get install -y libssl-dev libusb-1.0-0-dev pkg-config libgtk-3-dev
sudo apt-get install -y libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev
# fetch code
mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src
git clone https://github.com/intel/ros2_intel_realsense.git
cd ros2_intel_realsense
git checkout refactor
# build
source /opt/ros/dashing/setup.bash
cd ~/ros2_ws
colcon build --symlink-install
Obtain the serial number of your device
rs-enumerate-devices
Change the corresponding yaml file with the specific serial number, e.g. for d435.yaml in line3:
serial_no: <serial_number_of_your_device> # d435
To start the camera node in ROS2, plug in the camera, then type the following command:
source /opt/ros/dashing/setup.bash
source ~/ros2_ws/install/local_setup.bash
## using ros2 run
cd ~/ros2_ws
ros2 run realsense_node realsense_node __params:=`ros2 pkg prefix realsense_examples`/share/realsense_ros/config/d435.yaml __ns:=/d435
## using ros2 launch
ros2 launch realsense_examples rs_camera.launch.py
- Terminal 1:
source /opt/ros/dashing/setup.bash
source ~/ros2_ws/install/local_setup.bash
cd ~/ros2_ws
ros2 run realsense_node realsense_node __params:=`ros2 pkg prefix realsense_examples`/share/realsense_examples/config/d435.yaml __ns:=/d435
- Terminal 2:
source /opt/ros/dashing/setup.bash
source ~/ros2_ws/install/local_setup.bash
cd ~/ros2_ws
ros2 run realsense_node realsense_node __params:=`ros2 pkg prefix realsense_examples`/share/realsense_examples/config/t265.yaml __ns:=/t265
- Or using ros2 launch :
source /opt/ros/dashing/setup.bash
source ~/ros2_ws/install/local_setup.bash
cd ~/ros2_ws
## before launch all the cameras, serial number should be set in the launch file
ros2 launch realsense_examples rs_multiple_devices.launch.py
source /opt/ros/dashing/setup.bash
source ~/ros2_ws/install/local_setup.bash
cd ~/ros2_ws
## before launch all the cameras, serial number should be set in the launch file
ros2 launch realsense_examples rs_t265_and_d400.launch.py
for more usage of these launch files in realsense_examples/launch, please refer to our robot devkit project, includes SLAM and navigation etc.
Currently only support reconfigure parameters by ros2 param
at runtime, e.g.
Enable camera stream
ros2 param list
ros2 param get <node_name> color0.enabled
ros2 param set <node_name> color0.enabled true
Enable aligned depth
ros2 param set <node_name> align_depth true
Enable pointcloud
ros2 param set <node_name> enable_pointcloud true
- D435 and D415
camera/aligned_depth_to_color/image_raw
camera/aligned_depth_to_color/camera_info
- D435i
camera/aligned_depth_to_color/image_raw
camera/aligned_depth_to_color/camera_info
- T265
camera/fisheye1/image_rect_raw
camera/fisheye2/image_rect_raw
- Don't support dynamic reconfigure parameters by rqt_reconfigure due to issue#53 of rqt_reconfigure, but you still can reconfigure parameters by
ros2 param
. - We support Ubuntu Linux Bionic Beaver 18.04 on 64-bit, but not support Mac OS X 10.12 (Sierra) and Windows 10 yet.
- Add more tests
- Merge sensor data from gyroscope and accelerator into one topic
- Support diagnostics
- Support reconfigure parameters by GUI
Copyright 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
*Other names and brands may be claimed as the property of others
Any security issue should be reported using process at https://01.org/security