Skip to content
Snippets Groups Projects
Commit d1df70fc authored by MiguelARD's avatar MiguelARD Committed by GitHub
Browse files

Delete README.md

parent 9ffade45
No related branches found
No related tags found
No related merge requests found
# openpose_ros
My ROS Wrapper for openpose https://github.com/CMU-Perceptual-Computing-Lab/openpose
(see commit number `a1e0a5f4136e702b5731a268c2993fb75ca4753c`)
![alt text](https://raw.githubusercontent.com/stevenjj/openpose_ros/master/openpose_with_multisense.png)
# Installing and Testing the Openpose ROS Wrapper
1. Install openpose and its dependencies then enable the package by running
````
./install_openpose_and_enable_package.sh
````
2. If everything succeeds, run `catkin build`, source your workspace then:
````
roscd openpose_ros_pkg/../openpose
rosrun openpose_ros_pkg openpose_ros --image_dir examples/media/
````
3. To test with your ROS sensor_msgs::Image topic, go to `src/openpose_ros_node_firephinx.cpp` and edit the lines:
````
// Camera Topic
DEFINE_string(camera_topic, "/multisense/left/image_rect_color_rotated_180", "Image topic that OpenPose will process.");
````
Change the string accordingly. camera_topic should be the ros sensor_msgs::Image topic you subscribe to. For example `"/camera/image_raw"`
Run `catkin build` and source your workspace again then run:
````
rosrun openpose_ros_pkg openpose_ros_node_firephinx
````
If this works, you should see an openCV visualization open up:
![alt text](https://raw.githubusercontent.com/stevenjj/openpose_ros/master/example_output.png)
4. You may change the image resolution output by going back to `src/openpose_ros_node_firephinx.cpp` and change the parameters
````
#define OUTPUT_RES_X 1280 // Display Resolution Output Width
#define OUTPUT_RES_Y 720 // Display Resolution Output Height
````
## Example Service Code
1. To start the ros service run:
````
rosrun openpose_ros_pkg openpose_ros_node
````
2. To test if the service is working run:
````
rosrun openpose_ros_pkg test_openpose_ros_service_call
````
and subscribe to `/openpose_ros/input_image` for the input image and `/openpose_ros/detected_poses_image` for the output image
# Similar packages
Naturally, `openpose` is quite popular and similar packages for ros can be found at
* https://github.com/tue-robotics/openpose_ros
* https://github.com/firephinx/openpose_ros
# System
* Ubuntu 14.04.5 LTS 64-bit
* NVIDIA Titan XP (Proprietary Driver 381.09)
* CUDA 8.0
* cuDNN
* ROS Indigo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment