concepts.benchmark.namo.namo_polygon.namo_polygon_env.NamoPolygonEnvState#

class NamoPolygonEnvState[source]#

Bases: NamedTuple

NamoPolygonEnvState(simulation_state, current_attached_body, current_attached_body_relative_pos)

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

make(env)

restore(env)

Attributes

current_attached_body

Alias for field number 1

current_attached_body_relative_pos

Alias for field number 2

simulation_state

Alias for field number 0

__add__(value, /)#

Return self+value.

__getitem__(key, /)#

Return self[key].

__init__()#
__iter__()#

Implement iter(self).

__len__()#

Return len(self).

__mul__(value, /)#

Return self*value.

static __new__(_cls, simulation_state, current_attached_body, current_attached_body_relative_pos)#

Create new instance of NamoPolygonEnvState(simulation_state, current_attached_body, current_attached_body_relative_pos)

Parameters:
  • simulation_state (Dict[str, Any])

  • current_attached_body (Body | None)

  • current_attached_body_relative_pos (Tuple[float, float] | None)

count(value, /)#

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)#

Return first index of value.

Raises ValueError if the value is not present.

classmethod make(env)[source]#
Parameters:

env (NamoPolygonEnv)

Return type:

NamoPolygonEnvState

restore(env)[source]#
Parameters:

env (NamoPolygonEnv)

current_attached_body: Body | None#

Alias for field number 1

current_attached_body_relative_pos: Tuple[float, float] | None#

Alias for field number 2

simulation_state: Dict[str, Any]#

Alias for field number 0