ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Multiple user tracking using pi_tracker

asked 2013-04-03 08:29:16 -0500

Tariq gravatar image

Hello Everyone,

I am using using ROS Electric, and pi_tracker package for skeletal tracking. In the published /skeleton topic by pi_tracker, there is a field named 'user_id'. Although in the tracking window, the tracker can track more than one person, but in the /skeleton topic message, user_id field is always equal to 1. I am not sure, whether it can't track more than one person, or there is any other parameter that needs to be set to get multiple user tracking data. Your help will be highly appreciated.


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-04-04 06:24:25 -0500

updated 2013-04-04 06:24:53 -0500

You could also look at the source for openni_tracker.cpp for some hints on how to define unique tf frames for each user.

Also, when I first was getting started with ROS+Kinect, I wrote a package that borrowed heavily from pi_tracker and openni_tracker to provide exactly what you are looking for. Actually, I essentially did what @Pi_Robot suggested, and I publish arrays of skeleton messages. You can find my tracker code here and the message definitions here.

edit flag offensive delete link more


I think that your solution is the quickest, and the safest ! Good luck Tariq.

Stephane.M gravatar image Stephane.M  ( 2013-04-04 21:04:58 -0500 )edit

answered 2013-04-04 05:58:20 -0500

Pi Robot gravatar image

Hi @Tariq. If you look at the file skeleton_tracker.cpp in the pi_tracker/src directory, you will see a break statement after the first user is detected. This was to simplify the code when I first wrote the package. So to get started, you could remove this break statement but you would also have to create a new message type such as SkeletonArray that would allow you to publish the frames for all detected users.

I realize that's not much of an answer, but at least it might get you started.


edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-04-03 08:29:16 -0500

Seen: 357 times

Last updated: Apr 04 '13