firephinx / openpose_ros

ROS Catkin package wrapper for the OpenPose library from https://github.com/CMU-Perceptual-Computing-Lab/openpose.
55 stars 44 forks source link

Run time error with exit code -7 #7

Open mzn723 opened 6 years ago

mzn723 commented 6 years ago

The node seems to run successfully at first, until I publish the image_raw topic. Then, it crashes with the error message: process has died ...exit code -7

Any idea what's causing this or how to fix it?

P.S. Running the original openpose with the same camera and platform seem to work with no errors. I'm using ubuntu 16.04 ros kinetic on an NVIDIA Jetson computer.

lgarattoni commented 5 years ago

I had the same issue in a docker container. I solved it by compiling openpose against the ros opencv instead of the system opencv. So in my case I set OpenCV_DIR=/opt/ros/kinetic/share/OpenCV-3.3.1-dev when running cmake.

ruksen25 commented 5 years ago

@lgarattoni How did you install openpose in your Docker container? Do you know where to set OpenCV_DIR=/opt/ros/kinetic/share/OpenCV-3.3.1-dev when installing using the .sh files in the ubuntu_deprecated folder?

lgarattoni commented 5 years ago

@ruksen25 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 -DCMAKE_BUILD_TYPE=Release .. && cd $OPEN_POSE/build && make -j8 && make install

I'm using an older version of openpose, but it should still work. I haven't looked into the scripts you are talking about, I think they have actually been removed in the latest versions of openpose. Hope this helps.

ruksen25 commented 5 years ago

@lgarattoni Thank you for your reply. I have been trying to use your install method. However, when I do, the libcaffe.so and libopenpose.so files are not created in the same places as before and my ROS wrapper will not build. Did you experience something similar? Did you have to change some folder links yourself?

ruksen25 commented 5 years ago

@lgarattoni Thank you for your help. I have my wrapper running now. My problem was a process death with an exit code -11, which your suggestion also solved.

Smilels commented 4 years ago

@ruksen25 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 -DCMAKE_BUILD_TYPE=Release .. && cd $OPEN_POSE/build && make -j8 && make install

I'm using an older version of openpose, but it should still work. I haven't looked into the scripts you are talking about, I think they have actually been removed in the latest versions of openpose. Hope this helps.

thanks a lot