ros_openpose: Cannot launch node of type error AND file not found

Hello again, I just tried using your new normal camera feature and I am having some issues with it. I set the color_topic to my cv_camera/image_raw topic and tried to launch it. One error states, that ros_openpose/echo.py couldnt be launched and it for some reason cant find the pose_deploay.prototext

I did install OpenPose with sudo make install and the needed file exists in the openpose folder, but it searches in a completely different non exisiting directory.

And then there is the warning in the end, where it states, that the camera frame is empty, even though I can see the image it sends.

###################################### PARAMETERS

  • /echo/pub_topic: /frame
  • /rosOpenpose/cam_info_topic: cam_info_topic
  • /rosOpenpose/color_topic: /cv_camera/image_raw
  • /rosOpenpose/depth_topic: depth_topic
  • /rosOpenpose/frame_id: no_depth
  • /rosOpenpose/no_depth: True
  • /rosOpenpose/openpose_model_dir: /home/ravi/tools/…
  • /rosOpenpose/pub_topic: /frame
  • /rosdistro: kinetic
  • /rosversion: 1.12.14

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

ROS_MASTER_URI=http://localhost:11311

WARNING: Package name “psTutorial” does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes. process[rosOpenpose-1]: started with pid [7778] ERROR: cannot launch node of type [ros_openpose/echo.py]: can’t locate node [echo.py] in package [ros_openpose] [ INFO] [1583401261.208366552]: Starting ros_openpose… Auto-detecting all available GPUs… Detected 1 GPU(s), using 1 of them starting at GPU 0.

Error: Prototxt file not found: /home/ravi/tools/openpose/models/pose/body_25/pose_deploy.prototxt. Possible causes: 1. Not downloading the OpenPose trained models. 2. Not running OpenPose from the same directory where the model folder is located. 3. Using paths with spaces.

Coming from:

  • /home/student/Desktop/OpenPose/openpose/src/openpose/net/netCaffe.cpp:ImplNetCaffe():58
  • /home/student/Desktop/OpenPose/openpose/src/openpose/net/netCaffe.cpp:ImplNetCaffe():94
  • /home/student/Desktop/OpenPose/openpose/src/openpose/pose/poseExtractorCaffe.cpp:addCaffeNetOnThread():108
  • /home/student/Desktop/OpenPose/openpose/src/openpose/pose/poseExtractorCaffe.cpp:netInitializationOnThread():198
  • /home/student/Desktop/OpenPose/openpose/src/openpose/pose/poseExtractorNet.cpp:initializationOnThread():98
  • /home/student/Desktop/OpenPose/openpose/src/openpose/pose/poseExtractor.cpp:initializationOnThread():34
  • /home/student/Desktop/OpenPose/openpose/include/openpose/pose/wPoseExtractor.hpp:initializationOnThread():57
  • /home/student/Desktop/OpenPose/openpose/include/openpose/thread/worker.hpp:initializationOnThreadNoException():77 [ WARN] [1583401261.231449402]: Empty color image frame detected. Ignoring…

About this issue

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

Most upvoted comments

Hi @Ceepert I updated the instructions in the ReadMe file just now. Please do the following-

* You need to make Python scripts executable as stated [here](https://github.com/ravijo/ros_openpose#installation).

* Please edit `run.launch` to update `openpose_model_dir` as stated [here](https://github.com/ravijo/ros_openpose#configuration).

Let me know if the problem persists.

Yeah the old errors disappeared, but now the node crashes after a second with this:

SUMMARY

PARAMETERS

  • /echo/pub_topic: /frame
  • /rosOpenpose/cam_info_topic: cam_info_topic
  • /rosOpenpose/color_topic: /cv_camera/image_raw
  • /rosOpenpose/depth_topic: depth_topic
  • /rosOpenpose/frame_id: no_depth
  • /rosOpenpose/no_depth: True
  • /rosOpenpose/openpose_model_dir: /home/student/Des…
  • /rosOpenpose/pub_topic: /frame
  • /rosdistro: kinetic
  • /rosversion: 1.12.14

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

ROS_MASTER_URI=http://localhost:11311

WARNING:

Package name “psTutorial” does not follow the naming conventions. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes. process[rosOpenpose-1]: started with pid [15685] process[echo-2]: started with pid [15686] [ INFO] [1583408577.440885207]: Starting ros_openpose… Auto-detecting all available GPUs… Detected 1 GPU(s), using 1 of them starting at GPU 0. [ WARN] [1583408577.467630423]: Empty color image frame detected. Ignoring… ================================================================================REQUIRED process [rosOpenpose-1] has died! process has died [pid 15685, exit code -11, cmd /home/student/catkin_workspace/devel/lib/ros_openpose/rosOpenpose __name:=rosOpenpose __log:=/home/student/.ros/log/5ad528ae-5ed6-11ea-a7cf-48a4727f27d1/rosOpenpose-1.log]. log file: /home/student/.ros/log/5ad528ae-5ed6-11ea-a7cf-48a4727f27d1/rosOpenpose-1*.log Initiating shutdown! [echo-2] killing on exit [rosOpenpose-1] killing on exit

I guess you have solved this problem. But I post the answer in here anyway. The error comes from the opencv issue. Openpose compiles with the system opencv. But this ros package compiles with the ros opencv. The solution is that compiling openpose against the ros opencv instead of the system opencv. You can OpenCV_DIR=/opt/ros/kinetic/share/OpenCV-3.3.1-dev when running cmake. I used cmake to build and install openpose: RUN mkdir -p $OPEN_POSE/build && cd $OPEN_POSE/build && cmake -DOpenCV_DIR=/opt/ros/kinetic/share/OpenCV-3.3.1-dev … && cd $OPEN_POSE/build && make -j8 && make install