Removing Open3D dependency

This commit is contained in:
Abhishek Joshi
2024-07-20 19:33:11 -05:00
parent d49d4bf64c
commit 34060fcc49
5 changed files with 225 additions and 58 deletions
+6 -2
View File
@@ -18,8 +18,8 @@ import argparse
import pathlib
import mujoco
from mujoco.usd import exporter
# from mujoco.usd import exporter
import exporter
def generate_usd_trajectory(local_args):
"""Generates a USD file given the user arguments."""
@@ -42,6 +42,10 @@ def generate_usd_trajectory(local_args):
if exp.frame_count < d.time * local_args.framerate:
exp.update_scene(data=d)
exp.add_light(pos=(0, 0, 0),
intensity=2000,
light_type="dome")
exp.save_scene(filetype=local_args.export_extension)