How can I get the pose of a character in a writer?

I use the People Simulator and want to store the poses (only x, y, yaw, no skeleton) in a custom writer.
My first attempt was to use

  prim = stage.GetPrimAtPath("/World/Characters/w2/female_adult_business_02/ManRoot")
  xform = omni.usd.get_world_transform_matrix(prim)
  translation = xform.ExtractTranslation()

which works, but only gives me the position at which the character starts. The same primpath in the ROS2 tf publisher action graph node works, but I’d prefer to use a writer. How can I get the current position (after the animation was applied?)