# ROS Wrapper for Intel® RealSense™ Devices
These are packages for using Intel RealSense cameras (D400 series SR300 camera and T265 Tracking Module) with ROS.
LibRealSense supported version: v2.31.0 (see [realsense2_camera release notes](https://github.com/IntelRealSense/realsense-ros/releases))
## Installation Instructions
The following instructions support ROS Indigo, on **Ubuntu 14.04**, and ROS Kinetic, on **Ubuntu 16.04**.
#### The simplest way to install on a clean machine is to follow the instructions on the [.travis.yml](https://github.com/intel-ros/realsense/blob/development/.travis.yml) file. It basically summerize the elaborate instructions in the following 3 steps:
### Step 1: Install the latest Intel® RealSense™ SDK 2.0
- #### Install from [Debian Package](https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md#installing-the-packages) - In that case treat yourself as a developer. Make sure you follow the instructions to also install librealsense2-dev and librealsense-dkms packages.
#### OR
- #### Build from sources by downloading the latest [Intel® RealSense™ SDK 2.0](https://github.com/IntelRealSense/librealsense/releases/tag/v2.31.0) and follow the instructions under [Linux Installation](https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md)
### Step 2: Install the ROS distribution
- #### Install [ROS Kinetic](http://wiki.ros.org/kinetic/Installation/Ubuntu), on Ubuntu 16.04
### Step 3: Install Intel® RealSense™ ROS from Sources
- Create a [catkin](http://wiki.ros.org/catkin#Installing_catkin) workspace
```bash
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src/
```
- Clone the latest Intel® RealSense™ ROS from [here](https://github.com/intel-ros/realsense/releases) into 'catkin_ws/src/'
```bashrc
git clone https://github.com/IntelRealSense/realsense-ros.git
cd realsense-ros/
git checkout `git tag | sort -V | grep -P "^\d+\.\d+\.\d+" | tail -1`
cd ..
```
- Make sure all dependent packages are installed. You can check .travis.yml file for reference.
- Specifically, make sure that the ros package *ddynamic_reconfigure* is installed. If *ddynamic_reconfigure* cannot be installed using APT, you may clone it into your workspace 'catkin_ws/src/' from [here](https://github.com/pal-robotics/ddynamic_reconfigure/tree/kinetic-devel) (Version 0.2.0)
```bash
catkin_init_workspace
cd ..
catkin_make clean
catkin_make -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release
catkin_make install
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
```
## Usage Instructions
### Start the camera node
To start the camera node in ROS:
```bash
roslaunch realsense2_camera rs_camera.launch
```
This will stream all camera sensors and publish on the appropriate ROS topics.
Other stream resolutions and frame rates can optionally be provided as parameters to the 'rs_camera.launch' file.
### Published Topics
The published topics differ according to the device and parameters.
After running the above command with D435i attached, the following list of topics will be available (This is a partial list. For full one type `rostopic list`):
- /camera/color/camera_info
- /camera/color/image_raw
- /camera/depth/camera_info
- /camera/depth/image_rect_raw
- /camera/extrinsics/depth_to_color
- /camera/extrinsics/depth_to_infra1
- /camera/extrinsics/depth_to_infra2
- /camera/infra1/camera_info
- /camera/infra1/image_rect_raw
- /camera/infra2/camera_info
- /camera/infra2/image_rect_raw
- /camera/gyro/imu_info
- /camera/gyro/sample
- /camera/accel/imu_info
- /camera/accel/sample
- /diagnostics
The "/camera" prefix is the default and can be changed. Check the rs_multiple_devices.launch file for an example.
If using D435 or D415, the gyro and accel topics wont be available. Likewise, other topics will be available when using T265 (see below).
### Launch parameters
The following parameters are available by the wrapper:
- **serial_no**: will attach to the device with the given serial number (*serial_no*) number. Default, attach to available RealSense device in random.
- **usb_port_id**: will attach to the device with the given USB port (*usb_port_id*). i.e 4-1, 4-2 etc. Default, ignore USB port when choosing a device.
- **device_type**: will attach to a device whose name includes the given *device_type* regular expression pattern. Default, ignore device type. For example, device_type:=d435 will match d435 and d435i. device_type=d435(?!i) will match d435 but not d435i.
- **rosbag_filename**: Will publish topics from rosbag file.
- **initial_reset**: On occasions the device was not closed properly and due to firmware issues needs to reset. If set to true, the device will reset prior to usage.
- **align_depth**: If set to true, will publish additional topics with the all the images aligned to the depth image.</br>
The topics are of the form: ```/camera/aligned_depth_to_color/image_raw``` etc.
- **filters**: any of the following options, separated by commas:</br>
- ```colorizer```: will color the depth image. On the depth topic an RGB image will be published, instead of the 16bit depth values .
- ```pointcloud```: will add a pointcloud topic `/camera/depth/color/points`. The texture of the pointcloud can be modified in rqt_reconfigure (see below) or using the parameters: `pointcloud_texture_stream` and `pointcloud_texture_index`. Run rqt_reconfigure to see available values for these parameters.</br>
The depth FOV and the texture FOV are not similar. By default, pointcloud is limited to the section of depth containing the texture. You can have a full depth to pointcloud, coloring the regions beyond the texture with zeros, by setting `allow_no_texture_points` to true.
- The following filters have detailed descriptions in : https://github.com/IntelRealSense/librealsense/blob/master/doc/post-processing-filters.md
- ```disparity``` - convert depth to disparity before applying other filters and back.
- ```spatial``` - filter the depth image spatially.
- ```temporal``` - filter the depth image temporally.
- ```hole_filling``` - apply hole-filling filter.
- ```decimation``` - reduces depth scene complexity.
- **enable_sync**: gathers closest frames of different sensors, infra red, color and depth, to be sent with the same timetag. This happens automatically when such filters as pointcloud are enabled.
- ***<stream_type>*_width**, ***<stream_type>*_height**, ***<stream_type>*_fps**: <stream_type> can be any of *infra, color, fisheye, depth, gyro, accel, pose*. Sets the required format of the device. If the specified combination of parameters is not available by the device, the stream will not be published. Setting a value to 0, will choose the first format in the inner list. (i.e. consistent between runs but not defined). Note: for gyro accel and pose, only _fps option is meaningful.
- **enable_*<stream_name>***: Choose whether to enable a specified stream or not. Default is true. <stream_name> can be any of *infra1, infra2, color, depth, fisheye, fisheye1, fisheye2, gyro, accel, pose*.
- **tf_prefix**: By default all frame's ids have the same prefix - `camera_`. This allows changing it per camera.
- **base_frame_id**: defines the frame_id all static transformations refers to.
- **odom_frame_id**: defines the origin coordinate system in ROS convention (X-Forward, Y-Left, Z-Up). pose topic defines the pose relative to that system.
- **All the rest of the frame_ids can be found in the template launch file: [nodelet.launch.xml](./realsense2_camera/launch/includes/nodelet.launch.xml)**
- **unite_imu_method**: The D435i and T265 cameras have built in IMU components which produce 2 unrelated streams: *gyro* - which shows angular velocity and *accel* which shows linear acceleration. Each with it's own frequency. By default, 2 corresponding topics are available, each with only the relevant fields of the message sensor_msgs::Imu are filled out.
Settin
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
该资源提供了Realsense D435i深度相机的软件开发包rslidar_sdk,即Realsense D435i深度相机的ROS驱动。更多详细的内容可参考官网(https://github.com/IntelRealSense/realsense-ros/releases)。其基本环境需要安装Ubuntu和ROS。 准备工作: realsense-viewer # 打开realsense调试工具查看深度相机驱动文件的相机序列号 在realsense-driver-jetson/src/realsense-ros/realsense2_camera/launch目录下的rs_camera_424_240.launch文件,修改相机序列号<arg name="serial no" default="xxxxx"/> 启动命令: cd realsense-driver-jetson source devel/setup.bash roslaunch realsense2_camera rs_camera_424_240.launch 最后欢迎大家积极点赞和评论,博主会定期回复!
资源推荐
资源详情
资源评论
收起资源包目录
传感器驱动:Realsense D435i深度相机的ROS驱动 (962个子文件)
realsense2_camera-msg.asd 396B
local_setup.bash 283B
local_setup.bash 283B
local_setup.bash 283B
setup.bash 260B
setup.bash 260B
setup.bash 260B
feature_tests.bin 13KB
CMakeDetermineCompilerABI_CXX.bin 9KB
CMakeDetermineCompilerABI_C.bin 9KB
.built_by 11B
.built_by 11B
CMakeCCompilerId.c 18KB
feature_tests.c 688B
catkin_make.cache 234B
.catkin 37B
CATKIN_IGNORE 0B
.catkin_workspace 98B
cmake.check_cache 85B
Makefile.cmake 29KB
realsense2_camera-genmsg.cmake 13KB
realsense2_cameraConfig.cmake 10KB
realsense2_cameraConfig.cmake 10KB
realsense2_descriptionConfig.cmake 10KB
realsense2_descriptionConfig.cmake 10KB
ddynamic_reconfigureConfig.cmake 10KB
ddynamic_reconfigureConfig.cmake 9KB
cmake_install.cmake 7KB
cmake_install.cmake 7KB
CMakeCXXCompiler.cmake 5KB
cmake_install.cmake 4KB
cmake_install.cmake 3KB
CMakeCCompiler.cmake 2KB
DependInfo.cmake 2KB
package.cmake 2KB
package.cmake 1KB
cmake_install.cmake 1KB
cmake_install.cmake 1KB
DependInfo.cmake 1KB
DependInfo.cmake 1KB
DependInfo.cmake 1KB
DependInfo.cmake 1KB
DependInfo.cmake 1KB
cmake_install.cmake 1KB
order_packages.cmake 1KB
CTestTestfile.cmake 1KB
CTestTestfile.cmake 1KB
DependInfo.cmake 1KB
DependInfo.cmake 1KB
package.cmake 938B
package.cmake 925B
DependInfo.cmake 924B
DependInfo.cmake 812B
CMakeDirectoryInformation.cmake 652B
CMakeDirectoryInformation.cmake 652B
CMakeDirectoryInformation.cmake 652B
CMakeDirectoryInformation.cmake 652B
CMakeDirectoryInformation.cmake 634B
CMakeDirectoryInformation.cmake 634B
CMakeDirectoryInformation.cmake 634B
cmake_clean.cmake 579B
cmake_clean.cmake 539B
cmake_clean.cmake 535B
cmake_clean.cmake 530B
cmake_clean.cmake 525B
cmake_clean.cmake 500B
cmake_clean.cmake 470B
cmake_clean.cmake 467B
cmake_clean.cmake 463B
CTestTestfile.cmake 429B
realsense2_descriptionConfig-version.cmake 427B
realsense2_cameraConfig-version.cmake 427B
realsense2_descriptionConfig-version.cmake 427B
realsense2_cameraConfig-version.cmake 427B
ddynamic_reconfigureConfig-version.cmake 426B
ddynamic_reconfigureConfig-version.cmake 426B
cmake_clean.cmake 423B
cmake_clean.cmake 411B
CMakeSystem.cmake 388B
cmake_clean.cmake 384B
CTestTestfile.cmake 353B
cmake_clean.cmake 322B
cmake_clean.cmake 320B
DependInfo.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
CTestTestfile.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
DependInfo.cmake 316B
共 962 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
资源评论
AIPlayer
- 粉丝: 1w+
- 资源: 20
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 汇编语言安装文件:nasm-2.16.03
- Java 插件框架 (PF4J).zip
- image-svnadmin-2.5.3.tgz 正在使用ing,方便简单使用,运维好工具
- 地平线ros2文件.zip
- Java 多线程课程的代码及少量注释.zip
- 数据库课程设计-基于的个性化购物平台的建表语句.sql
- 数据库课程设计-基于的图书智能一体化管理系统的建表语句.sql
- Java 代码覆盖率库.zip
- Java 代码和算法的存储库 也为该存储库加注星标 .zip
- 免安装Windows10/Windows11系统截图工具,无需安装第三方截图工具 双击直接使用截图即可 是一款免费可靠的截图小工具哦~
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功