Skip to content

Commit

Permalink
fix pybullet visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Sep 5, 2024
1 parent d2877cb commit 7d5850d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kscale/store/pybullet.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ async def main(args: Sequence[str] | None = None) -> None:
parsed_args = parser.parse_args(args)

# Gets the URDF path.
urdf_path = await download_urdf(parsed_args.listing_id)
urdf_dir = await download_urdf(parsed_args.listing_id)
urdf_path = next(urdf_dir.glob("*.urdf"), None)
if urdf_path is None:
raise ValueError(f"No URDF found in {urdf_dir}")

try:
import pybullet as p # type: ignore[import-not-found]
Expand Down

0 comments on commit 7d5850d

Please sign in to comment.