GithubHelp home page GithubHelp logo

mental812 / openpose_ros Goto Github PK

View Code? Open in Web Editor NEW

This project forked from martinli059/openpose_ros

0.0 1.0 0.0 114 KB

ROS Catkin package wrapper for the OpenPose library from https://github.com/CMU-Perceptual-Computing-Lab/openpose.

CMake 7.72% C++ 92.28%

openpose_ros's Introduction

openpose_ros

Example ROS catkin package that utilizes the OpenPose library from https://github.com/CMU-Perceptual-Computing-Lab/openpose.

System

Tested on:

  • Ubuntu 14.04 / Ubuntu 16.04
  • ROS Indigo / Kinetic
  • CUDA 8.0 / CUDA 10.0 / CUDA 10.1
  • cuDNN 5.1 / cuDNN 6.0 / cuDNN 7.2.4 / cuDNN 7.5.0
  • OpenCV 3.3 / OpenCV 3.4

Installation Steps

  1. Clone OpenPose somewhere not in your catkin_workspace.
    git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git
  2. IMPORTANT: I do not update this repository very frequently and the maintainers of OpenPose tend to change their API frequently, so I can only guarantee that it will work with certain versions of OpenPose. Currently I have updated this ros wrapper to work with commit 6d3ff8b. You can use get that version by running the following commands:
    cd openpose
    git checkout 6d3ff8b
  3. Install openpose using instructions from here: https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/6d3ff8b3361cb5c098294b486a25c9921ad864c2/doc/installation.md. Make sure to run sudo make install in the build folder at the end.
  4. Clone this repository into your catkin_workspace/src directory.
    git clone https://github.com/firephinx/openpose_ros.git
  5. Modify the model_folder line in openpose_ros/src/gflags_options.cpp to where openpose is installed.
    DEFINE_string(model_folder,             "/path/to/openpose/models/",      "Folder path (absolute or relative) where the models (pose, face, ...) are located.");
  6. Modify the image_topic parameter in openpose_ros/launch/openpose_ros.launch to the image_topic you want to process.
    <param name="image_topic"     value="/camera/image_raw" />
  7. Modify the other parameters in openpose_ros/src/gflags_options.cpp and openpose_ros/launch/openpose_ros.launch to your liking such as enabling face and hands detection.
  8. Run catkin_make from your catkin_workspace directory.

Potential Installation Issues

  1. If cv_bridge is causing you errors and/or you decide to use OpenCV 3.2+, copy the cv_bridge folder from https://github.com/ros-perception/vision_opencv into your catkin_workspace/src directory.
  2. If you have problems with CUDA during catkin_make, uncomment this line in CMakeLists.txt # find_package(CUDA REQUIRED)

Running

source catkin_workspace/devel/setup.bash
roslaunch openpose_ros openpose_ros.launch

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.