Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def make_robosuite(env_name, env_config):
import robosuite
env = robosuite.make(
env_name,
has_renderer=env_config.render,
ignore_done=True,
use_camera_obs=env_config.pixel_input,
has_offscreen_renderer=env_config.pixel_input,
camera_height=84,
camera_width=84,
render_collision_mesh=False,
render_visual_mesh=True,
camera_name='agentview',
use_object_obs=(not env_config.pixel_input),
camera_depth=env_config.use_depth,
reward_shaping=True,
# demo_config=env_config.demonstration,
)
env = RobosuiteWrapper(env, env_config)