Giter Club home page Giter Club logo

darknet_ros_3d_v1's Introduction

Human and Object Detection with Intel D435 Depth Camera

Table of contents

1. Introduction

Human and object detection with Intel D435 Depth Camera is applied by using darknet_ros package.

Setup is done according to the video in the following youtube link with the source code in the drive link.

2. Installation guide

2.1. System setup

This project is developed for Ubuntu 20.04 with ROS Noetic. Be sure your system has the same configuration. You can check the following links to install them:

It is required that the ROS Noetic should be sourced in each terminal to run the simulation as mentioned in the ROS Noetic setup guide link. To do that,

source /opt/ros/noetic/setup.bash

should be sourced in each terminal. To make it easier, it can be added to the .bashrc file for automatic sourcing. Details can be found in the ROS Noetic setup guide link. Sourcing ROS Noetic will no longer be mentioned in further steps.

Bonus: If you have a different Linux or ROS distro than the specified requirements, you may prefer to use a Docker container. To do that, check the docker folder.

2.2. Installing dependencies

To have a clear installation, updating and upgrading your system is recommended.

sudo apt-get update
sudo apt-get upgrade

For the installation of packages, basic tools are required.

sudo apt install git apt-utils python3-catkin-tools wget libtool

Basic ROS packages are required for the project.

sudo apt install ros-noetic-cv-bridge ros-noetic-image-transport ros-noetic-tf ros-noetic-ddynamic-reconfigure ros-noetic-diagnostic-updater

Realsense2 is required for the Intel D435 Camera.

sudo apt install ros-noetic-realsense2-camera ros-noetic-realsense2-description ros-noetic-rgbd-launch

Check whether OpenCV version is greater than 4, i.e. OpenCV4 is installed.

pkg-config --modversion opencv4

If not, install OpenCV4 by following the link below

Then, go to opt/ros/noetic/share/cv_bridge/cmake and change the cv_bridgeConfig.cmake file: Find line set(_include_dirs "include;/usr/include;/usr/include/opencv") and change with set(_include_dirs "include;/usr/include;/usr/local/include/opencv4")

2.3. Building project

Open a terminal (will be mentioned as T1) and create a directory preferably in the home location as

mkdir -p sabes_ws
cd sabes_ws

Clone the project repository (T1)

git clone [email protected]:cemkucukgenc/darknet_ros_3D_v1.git

To build the project in sabes_ws/darknet_ros_3D_v1/catkin_ws (T1)

cd darknet_ros_3D_v1/catkin_ws
catkin build

3. Launching project

To run the project (T1)

source /sabes_ws/darknet_ros_3D_v1/catkin_ws/devel/setup.bash
roslaunch launch_inference launch_inference.launch

To see the output in the ROS topic (T2)

source /sabes_ws/darknet_ros_3D_v1/catkin_ws/devel/setup.bash
rostopic echo /objects_position/message

Bonus: Bookmarked issue pages that helped me to debug

darknet_ros_3d_v1's People

Contributors

cemkucukgenc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.