ros_openpose: problem with run.launch

hi i have a problem when i try to launch run.launch. i have a openpose with only cpu, the file test openpose.bin work for me (very very slowly, if i use --net_resolution -1x32 run with 4 fps). but when i launch the file run.launch, it gives me error:

roslaunch ros_openpose run.launch 
... logging to /home/nicco/.ros/log/ccdfaedc-cfa5-11ec-9b59-9cfce8af62c0/roslaunch-nicco-VivoBook-ASUSLaptop-X509JA-X509JA-18553.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://nicco-VivoBook-ASUSLaptop-X509JA-X509JA:44959/

SUMMARY
========

PARAMETERS
 * /echo/pub_topic: /frame
 * /rosOpenpose/cam_info_topic: cam_info_topic
 * /rosOpenpose/color_topic: /camera/image_raw
 * /rosOpenpose/depth_topic: depth_topic
 * /rosOpenpose/frame_id: no_depth
 * /rosOpenpose/no_depth: True
 * /rosOpenpose/pub_topic: /frame
 * /rosdistro: melodic
 * /rosversion: 1.14.13

NODES
  /
    echo (ros_openpose/echo.py)
    rosOpenpose (ros_openpose/rosOpenposeAsync)

ROS_MASTER_URI=http://localhost:11311

process[rosOpenpose-1]: started with pid [18571]
process[echo-2]: started with pid [18572]
[ INFO] [1652107174.632115228]: Starting ros_openpose...
---------------------------------- WARNING ----------------------------------
We have introduced an additional boost in accuracy in the CUDA version of about 0.2% with respect to the CPU/OpenCL versions. We will not port this to CPU given the considerable slow down in speed it would add to it. Nevertheless, this accuracy boost is almost insignificant so the CPU/OpenCL versions can be safely used.
-------------------------------- END WARNING --------------------------------
================================================================================
REQUIRED process [rosOpenpose-1] has died!
process has died [pid 18571, exit code -11, cmd /home/nicco/Desktop/ros_ws/devel/lib/ros_openpose/rosOpenposeAsync --model_folder /home/nicco/openpose/models/ --net_resolution -1x32 --model_pose COCO __name:=rosOpenpose __log:=/home/nicco/.ros/log/ccdfaedc-cfa5-11ec-9b59-9cfce8af62c0/rosOpenpose-1.log].
log file: /home/nicco/.ros/log/ccdfaedc-cfa5-11ec-9b59-9cfce8af62c0/rosOpenpose-1*.log
Initiating shutdown!
================================================================================
[echo-2] killing on exit
[rosOpenpose-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

Any suggestion?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

@goncalofurtado1

Thanks for the update. Glad it worked!!!

Thank You for your answer!

Looks like the issue really could be related to the OpenCV after all. I am having other problems with other packages which don’t allow me to test this issue right know but I’ll give you a more concrete answer as soon as they are resolved.

If you find it useful I’ll leave it here the corresponding versions:

  • Ubuntu: 20.04
  • ROS: noetic and foxy
  • Note: yes ros_openpose is installed in noetic and I launch the realsense2_camera node in foxy and then I run ros1_bridge which passes the topics correctly to ros_openpose and I can see the output in the visualizer.
  • OpenPose: 1.7.0
  • OpenCV: I installed 4.2.0 but whenever I ran python3 -c "import cv2; print(cv2.__version__)" the output was 4.5.5 that’s why the problem should be a mismatch between the versions. I uninstalled all versions and reinstalled 4.2.0 and made sure the previous command now returned 4.2.0.

Once I am able to test if this configuration is now correct I’ll post it here.

@ravijo

Sure. I follow this solution:

I had a similar problem and solved it by modifying the cv_bridgeConfig.cmake file.

$ cd /opt/ros/melodic/share/cv_bridge/cmake
$ sudo gedit cv_bridgeConfig.cmake

Replaced line 96

set(_include_dirs "include;/usr/include;/usr/include/opencv2")

and line 119

set(libraries "cv_bridge;/usr/local/lib/libopencv_core.so.4.5.4;/usr/local/lib/libopencv_imgproc.so.4.5.4;/usr/local/lib/libopencv_imgcodecs.so.4.5.4")

Need only to take care of the OpenCV version (in my case, 4.5.5). After that, I return to my ros_ws, I do catkin_make, and that’s it.

Thanks again, ravijo!