Skip to content

NameError: name 'env_idx' is not defined #8

@zzzzcl

Description

@zzzzcl

Hi Simar! Your work is excellent!! And I am tring to reproduce the code of "VinL". But when I tried to use the obstacle orriented walking policy trained by myself,following the instruction in python legged_gym/scripts/train.py --task=aliengo_lbc.

Traceback (most recent call last):
File "legged_gym/scripts/train.py", line 55, in
train(args)
File "legged_gym/scripts/train.py", line 43, in train
env, env_cfg = task_registry.make_env(name=args.task, args=args)
File "/home/orange/2411/ViNL-master/legged_gym/utils/task_registry.py", line 117, in make_env
env = task_class(
File "/home/orange/2411/ViNL-master/legged_gym/envs/aliengo/aliengo.py", line 124, in init
self.envs[env_idx], self.actor_handles[env_idx], "base"
NameError: name 'env_idx' is not defined

I don't know how to solve this problem and look forward to getting your help, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions