0nhc / depth_yolo

Combination of darknet_ros and iai_kinect2.
GNU General Public License v3.0
59 stars 5 forks source link
ros yolo

ROS1 VERSION   Ubuntu VERSION   LICENSE  

Description

This is a package combining darknet_ros and iai_kinect2 in order to get the 3D location of the objects detected.

It will automatically send tf transforms between the objects detected and kinect2_link.

b

Installation

step1 Install dependencies

  1. Remember to downgrade the gcc and g++ version of your system to 7 (my Ubuntu 20.04 is default 8)

  2. libfreenect2 (follow the official steps to install libfreenect2)

  3. python3-pcl (if you are using Ubuntu 18.04 with ROS Melodic, pip install python-pcl)

    pip install python3-pcl
  4. ros_numpy (if you are using Ubuntu 18.04 with ROS Melodic, sudo apt-get install ros-melodic-ros-numpy)

    sudo apt-get install ros-noetic-ros-numpy
  5. darknet_ros (This links to my forked repo. I modified it for supporting my RTX 30 laptop)

  6. iai_kinect2 (This links to my forked repo. I modified it for supporting Ubuntu 20.04)

    step2 Clone the dependencies packages

    If you haven't cloned the dependencies packages yet, clone them in your workspace first.

cd <your_ws>/src
git clone --recursive https://github.com/0nhc/darknet_ros.git
git clone https://github.com/0nhc/iai_kinect2.git

step3 install depth_yolo

Then, you can continue installing depth_yolo

git clone https://github.com/0nhc/depth_yolo.git
cd ..
catkin_make -DCMAKE_BUILD_TYPE=Release
source devel/setup.bash

Usage

It will automatically launch darknet_ros node(yolo v3) and kinect2_bridge.

roslaunch depth_yolo depth_yolo.launch

Contributing

Contributions are welcome! Please read the contributing guidelines before submitting a pull request.

License

This project is licensed under the GPL 3 License. See LICENSE for more information.

    Copyright (C) 2023  0nhc
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with this program.If not, see <https://www.gnu.org/licenses/>.                               

Acknowledgments

I would like to thank the following people for their contributions to this project: