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

How to update URDF character joint state using openni_tracker

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

arturbp gravatar image

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

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 -0600

Lorenz gravatar image

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

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

Question Tools

Stats

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

Seen: 511 times

Last updated: Aug 23 '12