spencer-project / spencer_people_tracking

Multi-modal ROS-based people detection and tracking framework for mobile robots developed within the context of the EU FP7 project SPENCER.
http://www.spencer.eu/
660 stars 327 forks source link

Detection working but tracking is not #16

Closed pirobot closed 7 years ago

pirobot commented 8 years ago

Hello,

I'm trying out the spencer_people_tracking package using ROS Indigo, Ubuntu 14.04 and an Xtion Pro Live camera. I am not using the CUDA HOG detection since I don't have a CUDA-capable GPU.

The source code compiled without error and running 'roslaunch spencer_people_tracking_launch tracking_on_robot.launch' connects to the camera and launches all nodes without error.

However in RViz, when I stand and move in front of the camera, I am detected OK and the bounding box moves with my movement when using the "Fused detections" visualizer. However, no motion tracks are visualized even though I have the "TrackedPersons Visually Confirmed" box checked and the topic set to /spencer/perception/tracked_persons. If I run 'rostopic echo /spencer/perception/tracked_persons', no data appears when I move in front of the camera.

tlind commented 7 years ago

Sorry for the late reply; hard to guess in hindsight what went wrong in your case. In general, the tracker only initiates tracks if the detection is sufficiently stable (i.e. doesn't disappear every 2nd frame or so). Also, if you have a map published on the /map topic, no tracks are initiated in map cells that are marked as occupied. This is under the assumption that your rostopic echo /spencer/perception/tracked_persons call outputs empty TrackedPersons messages. If you receive no messages at all, something else is wrong.

Closing the issue because it was opened quite a while ago.

pirobot commented 7 years ago

Thanks--I tried it again the other day and now it appears to be working. Go figure!