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