asked 2011-06-21 11:58:22 -0500Deepak
I am trying to use the ppl_detection in the astar-ros-pkg:
As soon as I run the node, it exits and throws me a segmentation fault.
the error displayed is given below:
[rviz-7] process has died [pid 4034, exit code -11].
Try changing line 468 of kinect_detect.cpp from: std::string model_string = "svm_models/" + model_name + ".model"; to: std::string model_string = "../svm_models/" + model_name + ".model";
This fixed the segfaulting for me.
If you believe the segmentation fault occurs at
RViz, this thread might be of help.
Else if you experience seg-fault while trying to run
kinect_detect, first of all the current implementation requires you run the command from the home directory of
roscd ppl_detection or something. See around line#468 in
kinect_detect.cpp where relative path of
.model file is specified). Then try what @Liz Murphy suggests. If that still doesn't solve, modify the same part as:
std::string model_string = "./svm_models/" + model_name + ".model";
On one of my notebook (
Ubuntu 11.04, Intel i7, ROS electric), I didn't have to do anything for
kinect_detect, but on
Turtlebot (eeepc), I had to do the above (maybe it's rooted in that the way
C++ treats the current directory varies depending on the computer architecture? I haven't investigated further).
The launch file contains a strange reference to a "trainer" package.
If that is the problem, check whether you can find the launchfile (i.e. have a look into the package) or try to edit the launchfile and remove
args="--display-config $(find trainer)/kinect_detect.vcg", you might then need to add the necessary displays manually.
answered 2012-05-02 10:27:26 -0500tayyab
If rviz gives you an error you can always try removing the temporary folder created by rviz. considering you are in home directory
rm -rf .rviz
Now restart the rviz.
If kinect_detect gives you a segmentation fault even after the above changes, then just re build it once again by assuming you are in ppl_detection package path
rosrun ppl_detection kinect_detect
hope it helps :)
Asked: 2011-06-21 11:58:22 -0500
Seen: 324 times
Last updated: May 02 '12