Home

Awesome

Depth Anything ROS2 Wrapper

This repository contains a ROS (Robot Operating System) node for estimating depth from RGB images using the Depth Anything model. The Depth Anything model is based on LiheYoung's depth_anything model.

Prerequisites

Installation

Clone the repository to your ROS2 workspace:

cd your_ws/src
git clone https://github.com/polatztrk/depth_anything_ros.git
cd ..
colcon build

Usage

Inside your workspace you can launch this package:

cd your_ws
source install/setup.bash
ros2 launch depth_anything_ros launch_depth_anything.launch.py

Then you can see these as a result in Rviz and Gazebo: ROS Depth Anything ROS Depth Anything ROS Depth Anything ROS Depth Anything

Depth map to point cloud converter for Rviz

Inside your workspace you can launch this package:

cd your_ws
source install/setup.bash
ros2 launch depth2point launch_depth_to_point.launch.py

Cite

Lihe Yang, Bingyi Kang, Zilong Huang, Xiaogang Xu, Jiashi Feng, Hengshuang Zhao, "Depth Anything: Unleashing the Power of Large-Scale Unlabeled Data", arXiv:2401.10891, 2024 ref