# Offline\_pose\_generation.py error on custom object

**URL:** <https://forums.developer.nvidia.com/t/offline-pose-generation-py-error-on-custom-object/241213>\
**Category:** Isaac Sim\
**Created:** [January 31, 2023, 10:32pm UTC](https://forums.developer.nvidia.com/t/offline-pose-generation-py-error-on-custom-object/241213 "2023-01-31T22:32:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aja9675](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aja9675](https://forums.developer.nvidia.com/u/aja9675)\
**Post date:** [January 31, 2023, 10:32pm UTC](https://forums.developer.nvidia.com/t/offline-pose-generation-py-error-on-custom-object/241213/1 "2023-01-31T22:32:09Z")

</div>

I am observing the following error when running offline\_pose\_generation.py following the instructions here: [6. Offline Pose Estimation Synthetic Data Generation — Omniverse Robotics documentation](https://docs.omniverse.nvidia.com/app_isaacsim/app_isaacsim/tutorial_replicator_offline_pose_estimation.html)

Traceback (most recent call last):  
File “d3\_offline\_pose\_generation.py”, line 657, in   
test=args.test,  
File “d3\_offline\_pose\_generation.py”, line 154, in **init**  
self.\_setup\_world()  
File “d3\_offline\_pose\_generation.py”, line 342, in \_setup\_world  
mass=1.0,  
File “/data/omniverse/library/isaac\_sim-2022.2.0/standalone\_examples/replicator/offline\_pose\_generation/flying\_distractors/dynamic\_object.py”, line 83, in **init**  
collision=True,  
File “/data/omniverse/library/isaac\_sim-2022.2.0/exts/omni.isaac.core/omni/isaac/core/prims/geometry\_prim.py”, line 104, in **init**  
contact\_filter\_prim\_paths\_expr=contact\_filter\_prim\_paths\_expr,  
File “/data/omniverse/library/isaac\_sim-2022.2.0/exts/omni.isaac.core/omni/isaac/core/prims/geometry\_prim\_view.py”, line 100, in **init**  
reset\_xform\_properties=reset\_xform\_properties,  
File “/data/omniverse/library/isaac\_sim-2022.2.0/exts/omni.isaac.core/omni/isaac/core/prims/xform\_prim\_view.py”, line 89, in **init**  
prim\_paths\_expr  
Exception: Prim path expression /World/\_monkey/\_monkey is invalid, a prim matching the expression needs to created before wrapping it as view  
2023-01-31 22:22:38 [22,572ms] [Warning] [carb.audio.context] 1 contexts were leaked  
/data/omniverse/library/isaac\_sim-2022.2.0/python.sh: line 41: 230338 Segmentation fault (core dumped) $python\_exe “$@” $args  
There was an error running python

Here’s my blender test file and .usda export:  
[monkey.blend](https://forums.developer.nvidia.com/uploads/short-url/1Kr2Coaw06hH57ezTOgML7WL5z2.blend) (936.0 KB)  
[monkey.usda](https://forums.developer.nvidia.com/uploads/short-url/cBluJZBbDFL8gan8irgoSZkotl3.usda) (144.0 KB)

I’ve only changed “self.asset\_path” and “part\_name” in offline\_pose\_generation.py to point to this model file. Everything else is the same.  
I can run the demo successfully with the original “003\_cracker\_box” object.  
I can open the .usda file in IssacSim when running the GUI, so I don’t think it’s an issue with the model file.  
I also tried the binary .usdc format.  
IsaacSim v2022.2.0

---

<div class="post-metadata">

**Author:** ![aja9675](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aja9675](https://forums.developer.nvidia.com/u/aja9675)\
**Post date:** [February 1, 2023, 9:53pm UTC](https://forums.developer.nvidia.com/t/offline-pose-generation-py-error-on-custom-object/241213/3 "2023-02-01T21:53:32Z")

</div>

I was able to fix this by creating a default ‘World’ prim in IsaacSim and saving the file.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [February 15, 2023, 9:54pm UTC](https://forums.developer.nvidia.com/t/offline-pose-generation-py-error-on-custom-object/241213/4 "2023-02-15T21:54:20Z")

</div>

Closed on February 15, 2023, 9:54pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
