basicgym.envs.simulator.function.StateTransitionFunction#
- class basicgym.envs.simulator.function.StateTransitionFunction(state_dim, action_dim, random_state=None)[source]#
Class to define the state transition function.
Bases:
basicgym.BaseStateTransitionFunctionImported as:
basicgym.envs.simulator.StateTransitionFunctionTip
Use
BaseStateTransitionFunctionto define a custom StateTransitionFunction.- Parameters:
- Attributes:
- random_state
Methods
step(state, action)Update the state based on the presented action.
- step(state, action)[source]#
Update the state based on the presented action.
- Parameters:
state (array-like of shape (state_dim, )) – Current state.
action (array-like of shape (action_dim, )) – Indicating the action chosen by the agent.
- Returns:
state – Next state.
- Return type:
array-like of shape (state_dim, )
Methods