Skip to content

Commit

Permalink
fix AttributeError: 'HoverEnv' object has no attribute 'target'
Browse files Browse the repository at this point in the history
  • Loading branch information
KafuuChikai committed Dec 28, 2024
1 parent f358466 commit a7ec3f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/drone/hover_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def __init__(self, num_envs, env_cfg, obs_cfg, reward_cfg, command_cfg, show_vie
),
),
)
else:
self.target = None

# add camera
if self.env_cfg["visualize_camera"]:
Expand Down

0 comments on commit a7ec3f7

Please sign in to comment.