Skip to content

Commit

Permalink
Fix demo renderer (#525)
Browse files Browse the repository at this point in the history
* Fix demo rendering bugging out due to lack of controller config

* Format imports

Authored by Kevin Lin
  • Loading branch information
kevin-thankyou-lin authored Nov 13, 2024
1 parent d44e816 commit 81fd714
Showing 1 changed file with 5 additions and 3 deletions.
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

0 comments on commit 81fd714

Please sign in to comment.