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

speed-based tracking

asked 2013-04-11 04:11:35 -0500

Rizqa gravatar image

updated 2016-10-24 09:03:34 -0500

ngrennan gravatar image

I try to make speed-based tracking that moves the speed of AX-12 servo motors based on the speed of my joints (my body) using kinect, but I don't know the mechanism how to get the speed by using kinect.. Anybody know ??

Do I must get kinect frame rate first ?

How to get the speed of my joints (my body) using kinect ??

I hope that someone can help me ^_^

Thanks..

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-04-11 05:01:59 -0500

updated 2013-04-11 05:06:00 -0500

Or simpler, if you are using openni.

[EDIT] : the pi_tracker is the one I meant. Openni tracker only gives transforms, not coordinate of the joints.

If you have a look at the tracker file, you'll see that you can access to the points coordinates. Then computing a velocity is the easy part. However, I have no idea how to command your motors (but I hope you know it ;-) )

To access the points, it easy : make a listener, then access the parts you are interested in :

for each joint (here corresponding to index k), you have the following fields

msg.position[k].x
msg.position[k].y
msg.position[k].z
msg.orientation[k].x
msg.orientation[k].y
msg.orientation[k].z
msg.orientation[k].w

[EDIT 2 ] = the pi_tracker has already something to command velocity for a robot, based on joint velocity....

I hope it'll help you,

Bests,

Steph

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-04-11 04:11:35 -0500

Seen: 271 times

Last updated: Apr 11 '13