smarts.env.gymnasium.wrappers.single_agent module

class smarts.env.gymnasium.wrappers.single_agent.SingleAgent(*args: Any, **kwargs: Any)[source]

Converts a single-agent SMARTS environment’s step and reset output to be compliant with gym spaces.

reset(*, seed=None, options=None) Tuple[Any, Any][source]

Resets a single-agent SMARTS environment.

Returns:

Agent’s observation and info

Return type:

Tuple[Any, Any]

step(action: Any) Tuple[Any, float, bool, bool, Any][source]

Steps a single-agent SMARTS environment.

Parameters:

action (Any) – Agent’s action

Returns:

Agent’s observation, reward,

terminated, truncated, and info

Return type:

Tuple[Any, float, bool, bool, Any]