Catkin_make fails on Leg_Tracker running on Raspberry Pi 3 on ROS Kinetic (not Indigo)

asked 2017-05-30 18:59:00 -0500

candersen10 gravatar image


We are working to integrate Leg_Tracker ( ), and are running into a few issues. Any help would be much appreciated!

We have been try to figure out what could be the reason for the catkin_make to fail on raspberry pi. Below is the error which we get when we do a catkin_make in our ROS workspace. We believe the error is because the CvRTrees object forest_ is not recognized as type CvRTrees. We have done the below trouble shooting:

(1) CvRTrees is a package in the openCV. We uninstalled openCV from the Raspberry Pi 3 and then reinstalled but the issue still persists.

(2) One of the errors in the log says that the variables are not declared in the scope. To address this we changed the scope of the variable but still the issue persists(We are reluctant to change the scope of the variable because the same code on another machine works fine).

Other possibilities which we can think of is that the ROS package is in indigo and we are running ROS kinetic on a Raspberry Pi 3.

Could anyone here let us know if we are missing anything or suggest any approaches to fix this issue? Below is an error log.

agr@agr-desktop:~/catkin_ws$ catkin_make Base path: /home/agr/catkin_ws Source space: /home/agr/catkin_ws/src Build space: /home/agr/catkin_ws/build Devel space: /home/agr/catkin_ws/devel Install space: /home/agr/catkin_ws/install ####

Running command: "make cmake_check_build_system" in "/home/agr/catkin_ws/build"

#### ####

Running command: "make -j4 -l4" in "/home/agr/catkin_ws/build"

#### [ 0%] Built target std_msgs_generate_messages_cpp [ 0%] Built target geometry_msgs_generate_messages_cpp [ 5%] Built target sweep_node [ 5%] Built target _leg_tracker_generate_messages_check_deps_Leg [ 5%] Built target geometry_msgs_generate_messages_eus [ 5%] Built target _leg_tracker_generate_messages_check_deps_LegArray [ 5%] Built target _leg_tracker_generate_messages_check_deps_Person [ 5%] Built target std_msgs_generate_messages_eus [ 5%] Built target _leg_tracker_generate_messages_check_deps_PersonArray [ 5%] Built target std_msgs_generate_messages_nodejs [ 5%] Built target geometry_msgs_generate_messages_nodejs [ 5%] Built target geometry_msgs_generate_messages_py [ 5%] Built target std_msgs_generate_messages_py [ 5%] Built target geometry_msgs_generate_messages_lisp [ 5%] Built target std_msgs_generate_messages_lisp [ 15%] Built target leg_tracker_generate_messages_cpp [ 26%] Built target leg_tracker_generate_messages_nodejs [ 39%] Built target leg_tracker_generate_messages_py [ 50%] Built target leg_tracker_generate_messages_lisp [ 50%] Built target leg_tracker_gencpp [ 63%] Built target leg_tracker_generate_messages_eus [ 71%] Built target extract_positive_training_clusters [ 78%] Built target local_occupancy_grid_mapping [ 81%] Building CXX object leg_tracker/CMakeFiles/train_leg_detector.dir/src/train_leg_detector.cpp.o [ 84%] Building CXX object leg_tracker/CMakeFiles/detect_leg_clusters.dir/src/detect_leg_clusters.cpp.o [ 84%] Built target leg_tracker_generate_messages /home/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp:294:3: error: ‘CvRTrees’ does not name a type CvRTrees forest_; ^ /home/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp: In member function ‘void TrainLegDetector::train()’: /home/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp:188:34: error: ‘CV_VAR_ORDERED’ was not declared in this scope cvSet( var_type, cvScalarAll(CV_VAR_ORDERED)); ^ /home/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp:189:41: error: ‘CV_VAR_CATEGORICAL’ was not declared in this scope cvSetReal1D( var_type, feat_count_, CV_VAR_CATEGORICAL ); ^ /home/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp:196:5: error: ‘CvRTParams’ was not declared in this scope CvRTParams fparam( ^ /home/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp:210:5: error: ‘forest_’ was not declared in this scope forest_.train( ^ /home ... (more)

edit retag flag offensive close merge delete