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)
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