worked for me changing that line to std::string model_string = "./svm_models/" + model_name + ".model"; as suggested by @IsaacSaito
Procópio Silveira Stein ( 2012-01-18 05:44:10 -0500 )editHi,
I am trying to use the ppl_detection in the astar-ros-pkg:
http://www.ros.org/wiki/ppl_detection
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].
No activity > 1 month, closing
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.
worked for me changing that line to std::string model_string = "./svm_models/" + model_name + ".model"; as suggested by @IsaacSaito
Procópio Silveira Stein ( 2012-01-18 05:44:10 -0500 )editIf 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 ppl_detection (by 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 fopen in C++ treats the current directory varies depending on the computer architecture? I haven't investigated further).
HTH.
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.
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
make
now do
rosrun ppl_detection kinect_detect
hope it helps :)
Asked: 2011-06-21 11:58:22 -0500
Seen: 324 times
Last updated: May 02 '12
ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.