You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the params of the environment are needed to initialize the object (such as to set observation_space member variable)
additional changes requirements: get_default_params should be changed to not require the instantiation of the environment to be used as it will be required in __init__
If there is no need to the `options' argument, remove it
Additional context
Here are 2 examples of params I need for MJX
xml_file indicates the file of the robot model to be used and sets up the internal MuJoCo model and everything else that depends on it like action and observation spaces
exclude_current_positions_from_observation changes, how much of the state space is observable, it is need in __init__() to observation_space and later in observation()
Checklist
I have checked that there is no similar issue in the repo
The text was updated successfully, but these errors were encountered:
Proposal
Currently, the
__init__
function does not take theparams
argument, instead it takes theoptions
argumentGymnasium/gymnasium/functional.py
Lines 49 to 52 in f88a618
But the
params
of the environment are needed to initialize the object (such as to setobservation_space
member variable)additional changes requirements:
get_default_params
should be changed to not require the instantiation of the environment to be used as it will be required in__init__
Gymnasium/gymnasium/functional.py
Lines 123 to 125 in de909da
to
and update
FunctionalJaxEnv(gym.Env)
with that change@RedTachyon
Motivation
I have been developing the MJX based environments and this is a requirement
Pitch
No response
Alternatives
If there is no need to the `options' argument, remove it
Additional context
Here are 2 examples of
params
I need for MJXxml_file
indicates the file of the robot model to be used and sets up the internal MuJoCo model and everything else that depends on it like action and observation spacesexclude_current_positions_from_observation
changes, how much of the state space is observable, it is need in__init__()
toobservation_space
and later inobservation()
Checklist
The text was updated successfully, but these errors were encountered: