# ROS Wrapper for Intel® RealSense™ Devices
These are packages for using Intel RealSense cameras (D400 series SR300 camera and T265 Tracking Module) with ROS.
This version supports Kinetic, Melodic and Noetic distributions.
For running in ROS2 environment please switch to the [ros2 branch](https://github.com/IntelRealSense/realsense-ros/tree/ros2). </br>
LibRealSense2 supported version: v2.48.0 (see [realsense2_camera release notes](https://github.com/IntelRealSense/realsense-ros/releases))
## Installation Instructions
### Ubuntu
#### Step 1: Install the ROS distribution
- #### Install [ROS Kinetic](http://wiki.ros.org/kinetic/Installation/Ubuntu), on Ubuntu 16.04, [ROS Melodic](http://wiki.ros.org/melodic/Installation/Ubuntu) on Ubuntu 18.04 or [ROS Noetic](http://wiki.ros.org/noetic/Installation/Ubuntu) on Ubuntu 20.04.
### Windows
#### Step 1: Install the ROS distribution
- #### Install [ROS Melodic or later on Windows 10](https://wiki.ros.org/Installation/Windows)
### There are 2 sources to install realsense2_camera from:
* ### Method 1: The ROS distribution:
*Ubuntu*
realsense2_camera is available as a debian package of ROS distribution. It can be installed by typing:
```sudo apt-get install ros-$ROS_DISTRO-realsense2-camera```
This will install both realsense2_camera and its dependents, including librealsense2 library and matching udev-rules.
Notice:
* The version of librealsense2 is almost always behind the one availeable in RealSense™ official repository.
* librealsense2 is not built to use native v4l2 driver but the less stable RS-USB protocol. That is because the last is more general and operational on a larger variety of platforms.
* realsense2_description is available as a separate debian package of ROS distribution. It includes the 3D-models of the devices and is necessary for running launch files that include these models (i.e. rs_d435_camera_with_model.launch). It can be installed by typing:
`sudo apt-get install ros-$ROS_DISTRO-realsense2-description`
*Windows*
**Chocolatey distribution Coming soon**
* ### Method 2: The RealSense™ distribution:
> This option is demonstrated in the [.travis.yml](https://github.com/intel-ros/realsense/blob/development/.travis.yml) file. It basically summerize the elaborate instructions in the following 2 steps:
### Step 1: Install the latest Intel® RealSense™ SDK 2.0
*Ubuntu*
Install librealsense2 debian package:
* Jetson users - use the [Jetson Installation Guide](https://github.com/IntelRealSense/librealsense/blob/master/doc/installation_jetson.md)
* Otherwise, install from [Linux Debian Installation Guide](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 librealsense2-dkms packages.
*Windows*
Install using vcpkg
`vcpkg install realsense2:x64-windows`
#### OR
- #### Build from sources by downloading the latest [Intel® RealSense™ SDK 2.0](https://github.com/IntelRealSense/librealsense/releases/tag/v2.48.0) and follow the instructions under [Linux Installation](https://github.com/IntelRealSense/librealsense/blob/master/doc/installation.md)
### Step 2: Install Intel® RealSense™ ROS from Sources
- Create a [catkin](http://wiki.ros.org/catkin#Installing_catkin) workspace
*Ubuntu*
```bash
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src/
```
*Windows*
```batch
mkdir c:\catkin_ws\src
cd c:\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 "^2.\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 or if you are using *Windows* you may clone it into your workspace 'catkin_ws/src/' from [here](https://github.com/pal-robotics/ddynamic_reconfigure/tree/kinetic-devel)
```bash
catkin_init_workspace
cd ..
catkin_make clean
catkin_make -DCATKIN_ENABLE_TESTING=False -DCMAKE_BUILD_TYPE=Release
catkin_make install
```
*Ubuntu*
```bash
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc
```
*Windows*
```batch
devel\setup.bat
```
## 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
>Using an L515 device the list differs a little by adding a 4-bit confidence grade (pulished as a mono8 image):
>- /camera/confidence/camera_info
>- /camera/confidence/image_rect_raw
>
>It also replaces the 2 infrared topics with the single available one:
>- /camera/infra/camera_info
>- /camera/infra/image_raw
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).
### Available services:
- reset : Cause a hardware reset of the device. Usage: `rosservice call /camera/realsense2_camera/reset`
- enable : Start/Stop all streaming sensors. Usage example: `rosservice call /camera/enable False"`
### 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 for the "aligned depth to color" image.: ```/camera/aligned_depth_to_color/image_raw```, ```/camera/aligned_depth_to_color/camera_info```.</br>
The pointcloud, if enabled, will be built based on the aligned_depth_to_color image.</br>
- **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
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Ubuntu系统下ROS机械臂(睿尔曼)与摄像头标定(RealSense)教程(眼在手上) ROS系统搭建 系统:Ubuntu 18.04 ROS:melodic OpenCV 库:OpenCV 3.2.0 Realsense D435: Marker 标记识别:Aruco 功能包 手眼标定:easy_handeye 功能包 Moveit! RM 机械臂 ROS 功能包 Catkin-tools 工具包 各个库的搭建、测试 资源包下载
资源推荐
资源详情
资源评论
收起资源包目录
Ubuntu系统下ROS机械臂(睿尔曼)与摄像头标定(RealSense)教程 (1137个子文件)
single_realsense.launch.bak 2KB
publish.launch.bak 1KB
local_setup.bash 283B
local_setup.bash 283B
local_setup.bash 283B
local_setup.bash 283B
local_setup.bash 283B
local_setup.bash 283B
setup.bash 260B
setup.bash 260B
setup.bash 260B
setup.bash 260B
setup.bash 260B
setup.bash 260B
feature_tests.bin 12KB
feature_tests.bin 12KB
CMakeDetermineCompilerABI_CXX.bin 8KB
CMakeDetermineCompilerABI_CXX.bin 8KB
CMakeDetermineCompilerABI_C.bin 8KB
CMakeDetermineCompilerABI_C.bin 8KB
cJSON.c 30KB
cJSON.c 27KB
CMakeCCompilerId.c 18KB
CMakeCCompilerId.c 18KB
feature_tests.c 688B
feature_tests.c 688B
.catkin 54B
.catkin 53B
CATKIN_IGNORE 0B
CATKIN_IGNORE 0B
rm_control.cbp 98KB
rm_driver.cbp 80KB
gmock.cbp 52KB
googletest-distribution.cbp 52KB
gtest.cbp 45KB
gmock.cbp 44KB
googletest-distribution.cbp 44KB
gtest.cbp 36KB
ArucoThreshold.cfg 900B
ArucoThreshold.cfg 556B
cmake.check_cache 85B
cmake.check_cache 85B
.clang-format 2KB
Makefile.cmake 20KB
Makefile.cmake 18KB
rm_controlConfig.cmake 9KB
rm_driverConfig.cmake 9KB
rm_controlConfig.cmake 9KB
rm_driverConfig.cmake 9KB
cmake_install.cmake 8KB
cmake_install.cmake 8KB
CMakeCXXCompiler.cmake 5KB
CMakeCXXCompiler.cmake 5KB
CMakeCCompiler.cmake 2KB
CMakeCCompiler.cmake 2KB
DependInfo.cmake 2KB
package.cmake 2KB
package.cmake 2KB
cmake_install.cmake 1KB
cmake_install.cmake 1KB
cmake_install.cmake 1KB
cmake_install.cmake 1KB
DependInfo.cmake 1KB
DependInfo.cmake 1KB
cmake_install.cmake 1KB
cmake_install.cmake 1KB
DependInfo.cmake 1KB
DependInfo.cmake 1KB
DependInfo.cmake 1KB
DependInfo.cmake 990B
DependInfo.cmake 988B
DependInfo.cmake 845B
DependInfo.cmake 844B
package.cmake 828B
CMakeDirectoryInformation.cmake 702B
CMakeDirectoryInformation.cmake 700B
package.cmake 696B
CMakeDirectoryInformation.cmake 667B
CMakeDirectoryInformation.cmake 667B
CMakeDirectoryInformation.cmake 667B
CMakeDirectoryInformation.cmake 666B
CMakeDirectoryInformation.cmake 666B
CMakeDirectoryInformation.cmake 666B
rm_controlConfig-version.cmake 426B
rm_controlConfig-version.cmake 426B
rm_driverConfig-version.cmake 426B
rm_driverConfig-version.cmake 426B
CMakeSystem.cmake 406B
CMakeSystem.cmake 406B
cmake_clean.cmake 384B
cmake_clean.cmake 384B
CTestTestfile.cmake 356B
CTestTestfile.cmake 354B
CTestTestfile.cmake 349B
CTestTestfile.cmake 348B
cmake_clean.cmake 344B
CTestTestfile.cmake 338B
CTestTestfile.cmake 337B
CTestTestfile.cmake 332B
CTestTestfile.cmake 331B
共 1137 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12
资源评论
追梦的鱼儿
- 粉丝: 802
- 资源: 15
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- T型3电平逆变器,lcl滤波器滤波器参数计算,半导体损耗计算,逆变电感参数设计损耗计算 mathcad格式输出,方便修改 同时支持plecs损耗仿真,基于plecs的闭环仿真,电压外环,电流内环
- 毒舌(解锁版).apk
- 显示HEX、S19、Bin、VBF等其他汽车制造商特定的文件格式
- 8bit逐次逼近型SAR ADC电路设计成品 入门时期的第三款sarADC,适合新手学习等 包括电路文件和详细设计文档 smic0.18工艺,单端结构,3.3V供电 整体采样率500k,可实现基
- 操作系统实验 ucorelab4内核线程管理
- 脉冲注入法,持续注入,启动低速运行过程中注入,电感法,ipd,力矩保持,无霍尔无感方案,媲美有霍尔效果 bldc控制器方案,无刷电机 提供源码,原理图
- Matlab Simulink#直驱永磁风电机组并网仿真模型 基于永磁直驱式风机并网仿真模型 采用背靠背双PWM变流器,先整流,再逆变 不仅实现电机侧的有功、无功功率的解耦控制和转速调节,而且能实
- 157389节奏盒子地狱模式第三阶段7.apk
- 操作系统实验ucore lab3
- DG储能选址定容模型matlab 程序采用改进粒子群算法,考虑时序性得到分布式和储能的选址定容模型,程序运行可靠 这段程序是一个改进的粒子群算法,主要用于解决电力系统中的优化问题 下面我将对程序进行详
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功