Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix demo renderer #525

Merged
merged 4 commits into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions robosuite/demos/demo_renderers.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import argparse
import json
import time

import numpy as np

import robosuite as suite
import robosuite.utils.transform_utils as T
from robosuite.utils.input_utils import *
from robosuite.controllers.composite.composite_controller_factory import load_composite_controller_config
from robosuite.utils.input_utils import choose_environment, choose_multi_arm_config, choose_robots

MAX_FR = 25 # max frame rate for running simluation

Expand Down Expand Up @@ -89,6 +88,9 @@ def print_command(char, info):
else:
options["robots"] = choose_robots(exclude_bimanual=True)

controller_config = load_composite_controller_config(robot=options["robots"])
options["controller_configs"] = controller_config

env = suite.make(
**options,
has_renderer=True, # no on-screen renderer
Expand Down
Loading