Skip to content

Commit

Permalink
Update pybullet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
beneisner authored Apr 16, 2024
1 parent 58dc828 commit c29145f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rpad/partnet_mobility_utils/render/pybullet.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ def render(
None,
] = None,
seed: Optional[int] = None,
use_egl: bool = False,
) -> PartialPC:
"""Sample a partial pointcloud using the Pybullet GL renderer. Currently only supports
randomized parameters.
Expand All @@ -299,7 +300,7 @@ def render(
"""
if self._render_env is None:
self._render_env = PMRenderEnv(
pm_obj.obj_dir.name, str(pm_obj.obj_dir.parent)
pm_obj.obj_dir.name, str(pm_obj.obj_dir.parent), use_egl=use_egl
)

rng = np.random.default_rng(seed)
Expand Down

0 comments on commit c29145f

Please sign in to comment.