English | 日本語
A ROS2 package that call the OpenPose from ROS2.
- Python 3.6
- ROS2 dashing
- cv_bridge
- OpenPose
- Python Wrapper
- Python 3.6
- Ubuntu 18.04 LTS
- ROS2 dashing
- OpenPose v1.7.0
- Install OpenPose. This package requires OpenPose Python Wrapper.
- Clone this repository to your ros2 workspace (substantially
~/ros2_ws/src
). - Change directory ros2 workspace root (substantially
~/ros2_ws
), and build package withcolcon build --base-paths src/openpose_ros2
. - Update packages with
. install/setup.bash
.
- Change directory ros2 workspace root.
- Run
cp ./src/openpose_ros2/openpose_ros2/params.yml.sample ./src/openpose_ros2/openpose_ros2/params.yml
. - Edit
./src/openpose_ros2/openpose_ros2/params.yml
. Please see "ROS2 parameters". - Run
ros2 run openpose_ros2 openpose_ros2 __params:=src/openpose_ros2/openpose_ros2/params.yml
.
- Change directory ros2 workspace root.
- Edit
./src/openpose_ros2/openpose_ros2/launch/openpose_ros2.py
. Please see "ROS2 parameters". - Build package with
colcon build --base-paths src/openpose_ros2
and. install/setup.bash
. - Run
ros2 launch openpose_ros2 openpose_ros2.py
.
- /openpose_node
- /openpose/pose_key_points [openpose_ros2_msgs/msg/PoseKeyPointsList]
- /openpose/preview [sensor_msgs/msg/Image] (debug mode only)
- /openpose/preview/compressed [sensor_msgs/msg/CompressedImage] (debug mode only)
- is_debug_mode : If true, run debug mode.
- openpose_root : The path of openpose root dir.
- is_image_compressed : If true, input images expect CompressedImage. Otherwise, input images expect Image.
- image_node : The string of input image node.
MIT License