How can i get the joint data?

Hi friends, as you can see in the picture.I want to get the depth data and jonit cordination x y of the 19 joints. But i don’t kown how to do it. I have used the
joint.depth_position() and joint.world_position().But the result show in the second picture doesn’t meet i need.How can i do ? Thank you !