Skip to content

Commit d5ba01b

Browse files
committed
Use lazy export for DR legs tasks
1 parent fa7786c commit d5ba01b

2 files changed

Lines changed: 40 additions & 3 deletions

File tree

source/isaaclab_tasks/isaaclab_tasks/contrib/dr_legs/mdp/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
DR-Legs-specific terms that have no stock equivalent.
1010
"""
1111

12-
from isaaclab.envs.mdp import * # noqa: F401, F403
12+
from isaaclab.utils.module import lazy_export
1313

14-
from .observations import * # noqa: F401, F403
15-
from .rewards import * # noqa: F401, F403
14+
lazy_export()
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md).
2+
# All rights reserved.
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
6+
__all__ = [
7+
# observations
8+
"gait_phase",
9+
"joint_position_setpoints",
10+
# rewards
11+
"ActionRate2L2",
12+
"base_ang_vel_l2",
13+
"base_lin_vel_l2",
14+
"contact_matching",
15+
"feet_flat",
16+
"feet_parallel",
17+
"feet_touchdown_vel",
18+
"foot_clearance",
19+
"joint_pd_command_l2",
20+
"joint_pos_tracking_exp",
21+
"root_orientation_exp",
22+
]
23+
24+
from .observations import gait_phase, joint_position_setpoints
25+
from .rewards import (
26+
ActionRate2L2,
27+
base_ang_vel_l2,
28+
base_lin_vel_l2,
29+
contact_matching,
30+
feet_flat,
31+
feet_parallel,
32+
feet_touchdown_vel,
33+
foot_clearance,
34+
joint_pd_command_l2,
35+
joint_pos_tracking_exp,
36+
root_orientation_exp,
37+
)
38+
from isaaclab.envs.mdp import *

0 commit comments

Comments
 (0)