Repo symbol

realsense_ros2 repository

Repo symbol

realsense_ros2 repository

Repo symbol

realsense_ros2 repository

Repo symbol

realsense_ros2 repository

Repository Summary

Description Ros 2 wrapper for intel realsense cameras d435 and t265
Checkout URI https://github.com/jdgalviss/realsense_ros2.git
VCS Type git
VCS Version main
Last Updated 2021-08-30
Dev Status UNKNOWN
Released UNRELEASED
Tags No category tags.
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Packages

Name Version
realsense_ros2 0.0.0

README

realsense_ros2

Ros 2 wrapper for intel realsense cameras d435 and t265.

This wrapper’s implementation is specially developed with the objective of running it in Nvidia’s Jetson Nano, however it should also work on any other platform running Ubuntu 18.04 and 20.04.

By running this wrapper you would be able to obtain:

  • Pose data from the realsense t265 tracking camera
  • Pointcloud from the realsense d435 depth stereo camera
  • Depth Image from the realsense d435 depth stereo camera

Tested on Jetson Nano: L4T 32.4.3 [ JetPack 4.4 ] Ubuntu 18.04.4 LTS Kernel Version: 4.9.140-tegra ROS 2 Eloquent

Tested on Ubuntu 20.04 amd64: ROS2 Foxy

Requirements

  • ROS2 eloquent or foxy

Installation

  1. Install librealsense2 as per the official instructions.
  2. Connect your cameras and check they are working propperly by openning a new terminal and typing:
    realsense-viewer
    
You should be able to add the t265 and d435 cameras and view their data streams simultaneously.

![rs-viewer][image1]
  1. Create a ROS 2 workspace, clone this repository inside and build:
    mkdir -p dev_ws/src
    cd dev_ws/src
    git clone https://github.com/jdgalviss/realsense_ros2.git
    cd ..
    colcon build
    
  1. Source your workspace
    . install/setup.bash
    

Run

D435 depth camera only

Run the node with the following command:

ros2 run realsense_ros2 rs_d435_node --ros-args -p is_color:=true -p publish_depth:=true -p fps:=30

  • When the is_color parameter is set to true, the color image from the depth camera is aligned with the pointcloud.
  • When the publish_depth parameter is set to true, the depth image is published.
  • When the publish_pointcloud parameter is set to true, the 3D pointcloud is published.
  • The fps parameter is used to modify the rate at which the node publishes the pointcloud and the depth image.

T265 tracking camera only

Run the node with the following command:

ros2 run realsense_ros2 rs_t265_node

T265 tracking and D435 depth cameras simultaneously

In one terminal, launch the two cameras:

ros2 launch realsense_ros2 realsense_launch.py

rviz

T265 tracking and D435 depth cameras simultaneously with SLAM-TOOLBOX 2D SLAM

In one terminal, launch the 2 cameras:

ros2 launch realsense_ros2 realsense_2d_slam_launch.py

In another terminal launch slam-toolbox:

ros2 launch realsense_ros2 online_async_launch.py

This requires to have ROS Slam-toolbox installed (apt-get install ros--slam-toolbox)

File truncated at 100 lines see the full file

Repo symbol

realsense_ros2 repository

Repo symbol

realsense_ros2 repository

Repo symbol

realsense_ros2 repository

Repo symbol

realsense_ros2 repository