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.