Skip to content

parse_env_cfg updates cfg.env_spacing instead of cfg.scene.env_spacing #35

Description

@gabrielwong159

In the GeneratedTaskEnvCfg class, the following variables are set:

self.num_envs: int = num_envs
self.env_spacing: float = env_spacing
...

# Set task-specific configs
self.scene = scene_env_cfg(num_envs=num_envs, env_spacing=env_spacing)

See:

self.scene = scene_env_cfg(num_envs=num_envs, env_spacing=env_spacing)
.

However, in parse_env_cfg, the cfg.scene.num_envs is updated, but not cfg.scene.env_spacing:

if env_spacing is not None:
    cfg.env_spacing = env_spacing

...
# number of environments
if num_envs is not None:
    cfg.scene.num_envs = num_envs
    cfg.num_envs = num_envs

See:

def parse_env_cfg(
.

This means that the env_spacing override is not correctly propagated to Isaac Lab.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions