(n_joints, time_limit=_DEFAULT_TIME_LIMIT, random=None,
                  environment_kwargs=None)
return control.Environment(
      physics, task, time_limit=time_limit, control_timestep=_CONTROL_TIMESTEP,
      **environment_kwargs)
Returns a swimmer control environment.
Returns a swimmer control environment.
Returns a swimmer control environment .
def _make_swimmer(n_joints, time_limit=_DEFAULT_TIME_LIMIT, random=None,
                  environment_kwargs=None):
  """Returns a swimmer control environment."""
  model_string, assets = get_model_and_assets(n_joints)
  physics = Physics.from_xml_string(model_string, assets=assets)
  task = Swimmer(random=random)
  environment_kwargs = environment_kwargs or {}
  return control.Environment(
      physics, task, time_limit=time_limit, control_timestep=_CONTROL_TIMESTEP,
      **environment_kwargs)
def _make_swimmer ( n_joints , time_limit = _DEFAULT_TIME_LIMIT , random = None , environment_kwargs = None ) : model_string , assets = get_model_and_assets ( n_joints ) physics = Physics . from_xml_string ( model_string , assets = assets ) task = Swimmer ( random = random ) environment_kwargs = environment_kwargs or { } return control . Environment ( physics , task , time_limit = time_limit , control_timestep = _CONTROL_TIMESTEP , * * environment_kwargs )