Occulted skeleton joints problem

Isaac Sim Version

4.5.0
4.2.0
4.1.0
4.0.0
4.5.0
2023.1.1
2023.1.0-hotfix.1
Other (please specify):

Operating System

Ubuntu 24.04
Ubuntu 22.04
Ubuntu 20.04
Windows 11
Windows 10
Other (please specify):

GPU Information

  • Model:
  • Driver Version:

Topic Description

Using replicator I am making recordings with the use of characters. During the recording I would like to know which parts of the characters are visible and which are not. Using:
import omni.replicator.core as rep
render_product = rep.create.render_product(camera_path, (camera_width, camera_height))
skeleton_anno = rep.annotators.get(“skeleton_data”)
skeleton_anno.attach(render_product)

using this I get back

data = skeleton_anno.get_data()
joint_occlusions = data[‘jointOcclusions’]

However, this parameter gives me an occlusion of the operator joints only if this is covered by another operator but if it is an object that covers it, it tells me that it is not occluded.
How cn I fix this problem?

Closing this topic as it has been inactive for several months. Here is the answer, in case it helps you or others who find this thread.

Why it happens. The skeleton_data annotator decides whether a joint is occluded by reading the instance segmentation ID at the joint’s 2D pixel and checking whether that ID belongs to the character. If the pixel belongs to something that has no semantic label, the annotator treats it as “unlabelled” and reports the joint as not occluded, with occlusion_types set to N/A. Only objects that carry a semantic label are counted as occluders. That is why a character standing in front of your joint is reported, while an unlabeled object is not.

Fix. Add a semantic label to every object that can hide a joint. You can use the Semantics Schema Editor in the UI, or from code:

from pxr import Semantics

prim = stage.GetPrimAtPath("/World/MyObject")
sem = Semantics.SemanticsAPI.Apply(prim, "Semantics")
sem.CreateSemanticTypeAttr().Set("class")
sem.CreateSemanticDataAttr().Set("occluder")

Any label works, and the annotator then reports the joint as occluded and puts that label in occlusion_types.

If you generate the data through the Isaac Sim Replicator Agent (IRA) instead, the same logic applies. There you enable agent_info_skeleton_data on IRABasicWriter, which uses this annotator internally and writes the result to object_detection.json, so unlabeled occluders need a semantic label there too.

What I tested. On Isaac Sim 6.2.0 I used the animated skeleton scene from the Replicator tests and placed a plate between the camera and the left hand joint.

  • Plate with no semantic label: the joint is reported as not occluded (type N/A).
  • The same plate with the label class: occluder: the joint is reported as occluded, and occlusion_types is {'class': 'occluder'}.

I did not run 4.5.0 (it is not runnable on my machine), but the occlusion code in the annotator is the same in 4.5.0, 5.1.0 and 6.2.0, so the behaviour should match.

Two limits to keep in mind: the check uses only the single pixel at each joint’s projected position, and a joint that falls outside the image is left as “not occluded” because it is skipped. If you want unlabeled geometry to count as an occluder automatically, that would be a feature request rather than something this annotator can do today. Please open a new topic if you need it.