GithubHelp home page GithubHelp logo

leg_tracker's Issues

Question in train_leg_detector_res=0.33.launch errors

When the program runs the code line , the node breaks out,but no errors are published.No yaml file are saved.


I suspects there may be some bugs lying here(maybe it's not arranging by rows?):
forest_->train(cv::ml::TrainData::create(
cv::cvarrToMat(cv_data), // train data
cv::ml::ROW_SAMPLE, // tflag
cv::cvarrToMat(cv_resp) // responses (i.e. labels)
// 0, // varldx (?)
// 0, // sampleldx (?)
// 0, // missing data mask
// var_type // variable type
));


I use opencv3.4

build error

Hi,

I am building on ubuntu 18 with ROS melodic and constantly getting the following errors.

CMakeFiles/detect_leg_clusters.dir/src/detect_leg_clusters.cpp.o: In function `DetectLegClusters::laserCallback(boost::shared_ptr<sensor_msgs::LaserScan_<std::allocator<void> > const> const&)':
detect_leg_clusters.cpp:(.text._ZN17DetectLegClusters13laserCallbackERKN5boost10shared_ptrIKN11sensor_msgs10LaserScan_ISaIvEEEEE[_ZN17DetectLegClusters13laserCallbackERKN5boost10shared_ptrIKN11sensor_msgs10LaserScan_ISaIvEEEEE]+0xc05): undefined reference to `cv::ml::RTrees::getVotes(cv::_InputArray const&, cv::_OutputArray const&, int) const'
collect2: error: ld returned 1 exit status
leg_tracker/CMakeFiles/detect_leg_clusters.dir/build.make:225: recipe for target '/home/alexr/catkin_ws/devel/lib/leg_tracker/detect_leg_clusters' failed
make[2]: *** [/home/alexr/catkin_ws/devel/lib/leg_tracker/detect_leg_clusters] Error 1
CMakeFiles/Makefile2:21967: recipe for target 'leg_tracker/CMakeFiles/detect_leg_clusters.dir/all' failed
make[1]: *** [leg_tracker/CMakeFiles/detect_leg_clusters.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

I can make out that the error is related to opencv. I have opencv 3.4.5 sourced installed on my system.

Can you help.

Thanks.

catkin_make Error | ROS Melodic OpenCV 3.4.0

Hi,

After clonning the repository to my catkin workspace, and after make the installations required (python-scipy and pykalman), I performed the catkin_make and I got the following error:

[ 83%] Linking CXX executable /home/joao-nisa/catkin_ws/devel/lib/leg_tracker/detect_leg_clusters
[ 86%] Building CXX object leg_tracker/CMakeFiles/extract_positive_training_clusters.dir/src/laser_processor.cpp.o
CMakeFiles/detect_leg_clusters.dir/src/detect_leg_clusters.cpp.o: In function `DetectLegClusters::laserCallback(boost::shared_ptr<sensor_msgs::LaserScan_<std::allocator<void> > const> const&)':
detect_leg_clusters.cpp:(.text._ZN17DetectLegClusters13laserCallbackERKN5boost10shared_ptrIKN11sensor_msgs10LaserScan_ISaIvEEEEE[_ZN17DetectLegClusters13laserCallbackERKN5boost10shared_ptrIKN11sensor_msgs10LaserScan_ISaIvEEEEE]+0x6bc): undefined reference to `cv::ml::RTrees::getVotes(cv::_InputArray const&, cv::_OutputArray const&, int) const'
collect2: error: ld returned 1 exit status
leg_tracker/CMakeFiles/detect_leg_clusters.dir/build.make:226: recipe for target '/home/joao-nisa/catkin_ws/devel/lib/leg_tracker/detect_leg_clusters' failed
make[2]: *** [/home/joao-nisa/catkin_ws/devel/lib/leg_tracker/detect_leg_clusters] Error 1
CMakeFiles/Makefile2:830: recipe for target 'leg_tracker/CMakeFiles/detect_leg_clusters.dir/all' failed
make[1]: *** [leg_tracker/CMakeFiles/detect_leg_clusters.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 88%] Linking CXX executable /home/joao-nisa/catkin_ws/devel/lib/leg_tracker/train_leg_detector
[ 88%] Built target train_leg_detector
[ 91%] Linking CXX executable /home/joao-nisa/catkin_ws/devel/lib/leg_tracker/extract_positive_training_clusters
[ 91%] Built target extract_positive_training_clusters
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

I got the Melodic version of ROS and the OpenCV is the required, 3.4.0.

Can you help me to fix this problem?

Thanks in advance!

when run train_leg_dection.launch crashed~

Hi, when I use my dataset to retrain the leg_tracker, something wrong.
1、in cluster_features.cpp, when the num_points <= 2, repoet an Opencv error.log like this:
OpenCV Error: Bad argument (The function can not solve under-determined linear systems) in solve, file /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/core/src/lapack.cpp, line 1250
terminate called after throwing an instance of 'cv::Exception'
what(): /tmp/binarydeb/ros-kinetic-opencv3-3.3.1/modules/core/src/lapack.cpp:1250: error: (-5) The function can not solve under-determined linear systems in function solve
2、I add a if(num_points <=2) ,and loadPoseData is ok, but when train(), it crashed angin~

Real "max_detect_distance" is no way greater than 5 meters

Hi!
First of all , thanks for your great work!

I was testing the code in order to do a demo like this one And I'm getting some where but I do need the robot to track or at least detect me even when we are 7 or 10 meters apart.
For instance even though I increase the max_detect_distance the 'real' maximum detection distance is around 4 or 5 meters.
Does this have something to do with a training parameter I'm missing or with the local_occupancy_grid_map node. I'm actually taking this demo launch file as starting point.

Your help would be appreciated,
Regards,
ItsJas.

trained_leg_detector_res=0.33.yaml

Why can't I retrain a model, which could show a similar performance on 'stationary' dataset with the given model? (p.s. I have used the given training code.)

Get Detections Results

Hi,

I have a bunch of bagfiles of LaserScan data with people exposing their legs in front of a MOnarCH and I want to use your leg_tracker to get the detections results from those bagfiles and compare them with another leg detector.

What do I have to make to get those detection results?

I'm a ROS Rookie, so pardon me if this is a truly beginner question.

Thanks in advance

False Positives and False Negatives

Dear @angusleigh, I'm very thankful for this repo, it has been very useful in most cases developing our following robot.
However there are certain cases when we observed 'ghost detections' trailing on one side of the target when walking near to a wall, this false positive can then cause unwanted id switches. Also we observed a blind spot in the front left of the robot where the lidar is less likely to not detect the pair of legs. Based on these observations my questions are:

  1. How to reduce false positive detections?
  2. What are the causes for the blind spot?
    I hope I can gain some insights from you, once again thanks for your work.

Question in local occupancy grid mapping errors

Hi, thank you for your useful work, I am learning from your project.
For now, I have retrained followed your guide and used my own bags. However, when I roslaunch one demo bag file similar to your example demo bags, there always a local occupancy grid map error.

error messages:

[local_occupancy_grid_mapping-3] process has died [pid 28131, exit code -11, cmd /home/wl/catkin_ws/devel/lib/leg_tracker/local_occupancy_grid_mapping __name:=local_occupancy_grid_mapping __log:=/home/wl/.ros/log/23018c14-ebcf-11e7-b411-8056f2944e1f/local_occupancy_grid_mapping-3.log].
log file: /home/wl/.ros/log/23018c14-ebcf-11e7-b411-8056f2944e1f/local_occupancy_grid_mapping-3*.log

and, the so called "******.log"file didn't exist or empty.

There something like some mistakes in local_occupancy_grid_mapping.cpp?
Could you give some advice? Many thanks!

Clustering the clusters

Is there a parameter to set to get fewer number of clusters, I've checked that most clusters returned from leg detector are nearly identical, differ only by 0.01 decimal place. Does a cluster represent a pair of legs or just one leg? Thank you.

Publish Occluded Issue - person track drift off

Hello,

We have been running the Leg Tracker, and when we set Publish Occluded to true, the leg tracker tries to give a continuous output, but if it loses the person being tracked, it continues to publish a person track that drifts off to a random place and then disappears rather than disappearing quickly.

If we set publish occluded to false, we get jitters in the person tracked output (i.e. person tracked, then a split second loss of the person, then reacquiring them).

Has anyone seen or solved this issue? It seems to be a glitch because the tracked person, once lost, will drift off randomly with published occluded set to true for nearly a second or two.

ROS Noetic

Are there any plans to add ROS Noetic support? I think the python 2 -> 3 migration should be trivial but ROS Noetic ships with OpenCV version 4.2.0 instead of 3.2.0, which causes errors upon building the package with catkin_make.

catkin_make error on train_leg_detector

[ 89%] Built target add_two_ints_client
[ 89%] Built target add_two_ints_server
[ 89%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_wifi_signal_sub.dir/src/WifiSignalSubNode.cpp.o
[ 89%] Linking CXX executable /home/ros/catkin_ws/devel/lib/leg_tracker/train_leg_detector
CMakeFiles/train_leg_detector.dir/src/train_leg_detector.cpp.o: In function cv::Mat::Mat(int, int, int, void*, unsigned long)': train_leg_detector.cpp:(.text._ZN2cv3MatC2EiiiPvm[_ZN2cv3MatC5EiiiPvm]+0x296): undefined reference to cv::Mat::updateContinuityFlag()'
collect2: error: ld returned 1 exit status
leg_tracker/CMakeFiles/train_leg_detector.dir/build.make:226: recipe for target '/home/ros/catkin_ws/devel/lib/leg_tracker/train_leg_detector' failed
make[2]: *** [/home/ros/catkin_ws/devel/lib/leg_tracker/train_leg_detector] Error 1
CMakeFiles/Makefile2:7304: recipe for target 'leg_tracker/CMakeFiles/train_leg_detector.dir/all' failed
make[1]: *** [leg_tracker/CMakeFiles/train_leg_detector.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 90%] Linking CXX executable /home/ros/catkin_ws/devel/lib/rtabmap_ros/wifi_signal_sub
/usr/bin/ld: warning: libopencv_core.so.3.2, needed by /home/ros/catkin_ws/devel/lib/librtabmap_ros.so, may conflict with libopencv_core.so.3.4
[ 90%] Built target rtabmap_wifi_signal_sub
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j2 -l2" failed

Hi,
Currently running on ROS Melodic with OpenCV 3.4.2.
This error occur after applying the solution for issue #17
Any idea on solving this issue, thanks in advance.

Question in train_leg_detector_res=0.33.launch errors

When I run train_leg_detector_res=0.33.launch,error Occurred.
================================================================================REQUIRED process [train_leg_detector-2] has died!
process has died [pid 73786, exit code -11, cmd /home/xu/leg_tracker_ws/devel/lib/leg_tracker/train_leg_detector --pos /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/positive_1_extracted.bag /training_scan --pos /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/positive_2_extracted.bag /training_scan --pos /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/positive_3_extracted.bag /training_scan --pos /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/positive_4_extracted.bag /training_scan --pos /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/positive_6_extracted.bag /training_scan --pos /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/positive_7_extracted.bag /training_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_1.bag /left_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_1.bag /right_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_1.bag /rear_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_2.bag /left_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_2.bag /right_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_2.bag /rear_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_3.bag /left_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_3.bag /right_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_3.bag /rear_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_4.bag /left_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_4.bag /right_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_4.bag /rear_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_9.bag /left_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_9.bag /right_scan --neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_9.bag /rear_scan --test_pos /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/positive_1_extracted.bag /training_scan --test_pos /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/positive_2_extracted.bag /training_scan --test_pos /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/positive_3_extracted.bag /training_scan --test_pos /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/positive_4_extracted.bag /training_scan --test_pos /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/positive_6_extracted.bag /training_scan --test_pos /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/positive_7_extracted.bag /training_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_1.bag /left_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_1.bag /right_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_1.bag /rear_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_2.bag /left_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_2.bag /right_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_2.bag /rear_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_3.bag /left_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_3.bag /right_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_3.bag /rear_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_4.bag /left_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_4.bag /right_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_4.bag /rear_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_9.bag /left_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_9.bag /right_scan --test_neg /home/xu/leg_tracker_ws/src/leg_tracker-indigo/rosbags/training_scans_res=0.33/negative_9.bag /rear_scan --save_file /home/xu/leg_tracker_ws/src/leg_tracker-indigo/config/trained_leg_detector_res=0.33.yaml __name:=train_leg_detector __log:=/home/xu/.ros/log/e6d3bd7c-6967-11e8-a01e-000c291dfbdd/train_leg_detector-2.log].
log file: /home/xu/.ros/log/e6d3bd7c-6967-11e8-a01e-000c291dfbdd/train_leg_detector-2*.log
Initiating shutdown!

I use openCV 3.4.1. I cannot get the yaml file

Issue of using pykalman

Dear angusleigh
First of all thank you for allowing your work in the open for us, I have personally been learning a lot.
I just had one question though, I was wondering if you knew of any kind of other kalman filters that we can use other than the give pykalman.

Some questions about retraining

We have read your ICRA2015 paper and it is inspiring and we decided to use the leg_tracker package to work on our robotics project. However, there's some question about the usage of this package.

  • We are using a Velodyne LiDAR to record the positive and negative ROS bags, and it was recorded as 2D \scan messages.

  • When the retraining was done, we can not run this bag very well, it did not track any people. But the demos are still fine.

Is the problem with the bag recorded which we used to retrain? Or the problem with the parameters we still need tunning?

Issues with Leg_Tracker on Raspberry Pi 3 on ROS Kinetic (not Indigo)

Hello,

We are working to integrate Leg Tracker, and are running into a few issues.

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/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp:212:7: error: ‘CV_ROW_SAMPLE’ was not declared in this scope
CV_ROW_SAMPLE, // tflag
^
/home/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp:218:7: error: ‘fparam’ was not declared in this scope
fparam // parameters
^
/home/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp: In member function ‘void TrainLegDetector::test(bool)’:
/home/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp:260:11: error: ‘forest_’ was not declared in this scope
if (forest_.predict( tmp_mat) > 0)
^
/home/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp:271:11: error: ‘forest_’ was not declared in this scope
if (forest_.predict( tmp_mat ) < 0)
^
/home/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp: In member function ‘void TrainLegDetector::save()’:
/home/agr/catkin_ws/src/leg_tracker/src/train_leg_detector.cpp:289:5: error: ‘forest_’ was not declared in this scope
forest_.save(save_file_.c_str());
^
leg_tracker/CMakeFiles/train_leg_detector.dir/build.make:62: recipe for target 'leg_tracker/CMakeFiles/train_leg_detector.dir/src/train_leg_detector.cpp.o' failed
make[2]: *** [leg_tracker/CMakeFiles/train_leg_detector.dir/src/train_leg_detector.cpp.o] Error 1
CMakeFiles/Makefile2:1431: recipe for target 'leg_tracker/CMakeFiles/train_leg_detector.dir/all' failed
make[1]: *** [leg_tracker/CMakeFiles/train_leg_detector.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/agr/catkin_ws/src/leg_tracker/src/detect_leg_clusters.cpp:112:3: error: ‘CvRTrees’ does not name a type
CvRTrees forest;
^
/home/agr/catkin_ws/src/leg_tracker/src/detect_leg_clusters.cpp: In constructor ‘DetectLegClusters::DetectLegClusters()’:
/home/agr/catkin_ws/src/leg_tracker/src/detect_leg_clusters.cpp:98:5: error: ‘forest’ was not declared in this scope
forest.load(forest_file.c_str());
^
/home/agr/catkin_ws/src/leg_tracker/src/detect_leg_clusters.cpp: In member function ‘void DetectLegClusters::laserCallback(const ConstPtr&)’:
/home/agr/catkin_ws/src/leg_tracker/src/detect_leg_clusters.cpp:208:38: error: ‘forest’ was not declared in this scope
float probability_of_leg = forest.predict_prob(tmp_mat);
^
leg_tracker/CMakeFiles/detect_leg_clusters.dir/build.make:62: recipe for target 'leg_tracker/CMakeFiles/detect_leg_clusters.dir/src/detect_leg_clusters.cpp.o' failed
make[2]: *** [leg_tracker/CMakeFiles/detect_leg_clusters.dir/src/detect_leg_clusters.cpp.o] Error 1
CMakeFiles/Makefile2:1545: recipe for target 'leg_tracker/CMakeFiles/detect_leg_clusters.dir/all' failed
make[1]: *** [leg_tracker/CMakeFiles/detect_leg_clusters.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

Human following robot application

Is it possible to implement human following robot with this leg_tracker source. We can only do the detection and tracking legs by using this source code .
Is there any possibility of implementing human following application with this source.
Please do respond

Thank you in advance,
Aswin P

Hi, we implemented such functionnality with a former coworker.

          Hi, we implemented such functionnality with a former coworker.  

From what I recall, we follow that path :

  • Train model with our own datasets as described in README
  • implemented leg_tracker with people_tracker to get /people_tracked
  • tuned params to get decent information regarding our usecase
  • created a node that use /people_tracked to issue /cmd_vel (basic PID control)

Depending on the quality of your odomframe, you can do that in odom frame or robot frame.
Let me know if you succeed !

Originally posted by @pmirabel in #23 (comment)

Training data - should/can negative datasets include a lot of non-people noise?

In the readme for the leg_tracker, it states to "gather negative examples by moving the scanner on a moble platform around empty rooms."

Does this imply that it is best to have the negative dataset in a fairly clean environment? Or should the negative dataset include a lot of noise (i.e. signs/poles/etc. if used on city streets)?

How environment specific does the negative dataset have to be? Does the leg tracker need to be retrained for every use case environment?

Thanks!

Rviz output for joint_leg_tracker.launch

I am able to get joint_leg_tracker running, but I am not able to see the output real-time in rviz. I have added all the visualizable topics in rviz, but am getting the message "No map received" on the map "/local_map" topic. I would like to be able to see the same type of output in rviz that is in the sample stationary demo launch file. I am new to ROS, so I apologize if this is a trivial question.

Use git LFS for large bag files and trained models?

Hello,

Just came across this nice ROS package, and am testing it out now.
I noticed that git pull was taking a while from the repo and then saw you've added large binary bag files to the git repo history. Might I recommend, as this repo still only has 3 commits, to rebase the repo and instead host the bag files via Git Large File Storage (LFS)? This is free for GitHub, under 1GB, which should be more that enough here.

You might also want to do the same with the large opencv random forests yaml files, that way updating the trained models also doesn't incur large repo sizes.

Great project!

Tuning for higher frequencies

Hi,

I have been using this package to try and follow someone but, the laser I use is of 40Hz and the program does not work well. I down-sampled to 15Hz and still doesn't work as well. Is there anyway I can tune it to 40Hz? Thank you.

What is the license?

Hi, the package.xml file currently specifies a "TODO" license. I saw that some CPP files are under BSD license, but the Python files (e.g. the joint_leg_tracker.py) have no license attached at all. Is this entire repository under the BSD?

Maybe you could add a LICENSE file or a statement in the README to clarify.

Detect leg while robot is moving

Hello, I am trying to understand which frame it is better to use in my specific case for the joint_leg_tracker part.

My understansing of odom versus base_link frame is that :

  • if my robot is not moving, i can use any frame to compute X,Y coord and twist of people moving around the robot
  • if my robot is moving, i have to use the odom frame so the computation of a people data will take into account the motion of my robot

It is pretty clear for me that I have to use odom frame if I am moving... But I can't explain it very clearly... can anyone explain this part to me ?

thank you!

Is openCV 3.2 suitable for this package?

When I run catkin_make, there are some errors:

Built target extract_positive_training_clusters
/home/ohayoo/catkin_ws/src/leg_tracker/src/detect_leg_clusters.cpp: In member function ‘void DetectLegClusters::laserCallback(const ConstPtr&)’:
/home/ohayoo/catkin_ws/src/leg_tracker/src/detect_leg_clusters.cpp:213:19: error: ‘class cv::ml::RTrees’ has no member named ‘getVotes’
forest->getVotes(cv::cvarrToMat(tmp_mat), result, 0);
^
I use openCV 3.2. Is the version appropriate?

how to use your project build on ROS 1 by ROS 2

all the code you provide is built according to ROS1. now i have ROS2 i get a lot of problem trying using your project ( and i am beginner) . is that any simple way to do it or i have to change it all?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.