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

xana's profile - activity

2016-03-30 10:14:15 -0500 received badge  Student (source)
2014-08-20 12:26:38 -0500 received badge  Famous Question (source)
2014-08-20 12:26:38 -0500 received badge  Notable Question (source)
2014-04-10 22:36:15 -0500 received badge  Popular Question (source)
2014-04-08 05:32:08 -0500 received badge  Organizer (source)
2014-04-08 05:31:16 -0500 asked a question Project openni_tracker skeleton to Image Coordinates

I'm using ROS to control a Kinect, and I need to project the skeleton points I get with openni_tracker to image coordinates. I found an answer about converting world coordinates to image coordinates (P_screen = I * P_world, where I is the 3x4 intrinsics matrix), however, the mapping I get seems incorrect.

An example of the /tf topic I have recorded is below:

transforms: 
  - 
    header: 
      seq: 0
      stamp: 
        secs: 1385988109
        nsecs: 907731078
      frame_id: /skeleton/openni_depth_frame
    child_frame_id: /skeleton/head_4
    transform: 
      translation: 
        x: 1.97650313527
        y: 0.467346462985
        z: 0.124516482569
      rotation: 
        x: 0.320303175814
        y: 0.601755401028
        z: 0.604153236547
        w: 0.412668365236
---

Could you please help me with the needed transform to get the image coordinates (RGB topic: /camera/rgb/image_color) of the above point (the head of Kinect skeleton). The rest of the skeleton point have similar format.

Also, I want to point out, that I used the skeleton_markerspackage and the visualization of the joints of the skeleton seems correct. However, the problem is that I don't know how to project those points on the RGB image.