Skip to content

[Proposal] grid environment origins with generated terrain #3536

@georgwi

Description

@georgwi

Proposal

Support distributing environments in a grid when using a generated terrain.

Motivation

It is currently not easy to use a generated terrain and distribute the environment origins in a grid. This is useful when training a policy for a robot that does not move much in the terrain while using a generated terrain.

Alternatives

It is possible to "hack" the redistribution of the robots using a curriculum term using a function like this:

def distribute_robots(env: ManagerBasedRLEnv, env_ids: Sequence[int]):
    if env.common_step_counter == 0:
        print("recalculating the origins")
        terrain: TerrainImporter = env.scene.terrain
        terrain.configure_env_origins(origins=None)

Additional context

Checklist

  • I have checked that there is no similar issue in the repo (required)

Acceptance Criteria

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions