Ask Your Question
1

How to update URDF character joint state using openni_tracker

asked 2012-08-23 04:18:02 -0500

arturbp gravatar image

updated 2016-10-24 08:59:04 -0500

ngrennan gravatar image

I am trying to develop a simple kinect demo that consists in standing in front of a kinect and after that, start control the movents of a simple URDF character.

To do that, I planned to subscribe to the /tf topic and obtain the user's joint position and angles published by the openni_tracker node so that I could update the URDF character's joint positions according to the user's movement. Something similar to what is done in this tutorial.

How could I "convert" the quaternions published by the openni_tracker node into some understandable representation for the sensor_msgs::JointState joint_state function?

Thanks for the help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2012-08-23 04:47:30 -0500

Lorenz gravatar image

updated 2012-08-23 04:48:58 -0500

If you name the links in your urdf file identical to the TF frame names that are published by the kinect tracker. rviz places the links always based on the tf frames, not based on any joint states.

On the PR2, the robot_state_publisher node subscribes to the joint_states topic and publishes the tf frames of all links specified in the urdf. Rviz then just uses tf.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-08-23 04:18:02 -0500

Seen: 389 times

Last updated: Aug 23 '12