Skip to content

polatztrk/depth_anything_ros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

  • Python 3.x
  • ROS (Robot Operating System)
  • OpenCV
  • PyTorch
  • torchvision
  • Additionally, you need a robot or camera model that generates /image_raw, either from Gazebo or the real world.

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

About

ROS2 wrapper for depth anything

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages