Skip to content

Commit f9bfc0e

Browse files
committed
fix linter
1 parent 61a6de9 commit f9bfc0e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

source/isaaclab/isaaclab/terrains/terrain_generator.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from isaaclab.utils.timer import Timer
1919
from isaaclab.utils.warp import convert_to_warp_mesh
2020

21-
from .trimesh.utils import make_border
2221
from .utils import color_meshes_by_height, find_flat_patches
2322

2423
if TYPE_CHECKING:
@@ -306,10 +305,10 @@ def _make_grid_strip(x0: float, y0: float, width: float, length: float) -> trime
306305
return trimesh.Trimesh(vertices=vertices, faces=np.array(faces, dtype=np.uint32))
307306

308307
strips = [
309-
_make_grid_strip(-bw, -bw, inner_w + 2 * bw, bw), # bottom
310-
_make_grid_strip(-bw, inner_l, inner_w + 2 * bw, bw), # top
311-
_make_grid_strip(-bw, 0.0, bw, inner_l), # left
312-
_make_grid_strip(inner_w, 0.0, bw, inner_l), # right
308+
_make_grid_strip(-bw, -bw, inner_w + 2 * bw, bw), # bottom
309+
_make_grid_strip(-bw, inner_l, inner_w + 2 * bw, bw), # top
310+
_make_grid_strip(-bw, 0.0, bw, inner_l), # left
311+
_make_grid_strip(inner_w, 0.0, bw, inner_l), # right
313312
]
314313
border = trimesh.util.concatenate(strips)
315314
self.terrain_meshes.append(border)

source/isaaclab_tasks/isaaclab_tasks/manager_based/locomotion/velocity/config/anymal_d/rough_env_cfg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class RoughPhysicsCfg(PresetCfg):
3636
)
3737
physx = default
3838

39+
3940
@configclass
4041
class AnymalDRoughEnvCfg(LocomotionVelocityRoughEnvCfg):
4142
sim: SimulationCfg = SimulationCfg(physics=RoughPhysicsCfg())
@@ -46,6 +47,7 @@ def __post_init__(self):
4647
# switch robot to anymal-d
4748
self.scene.robot = ANYMAL_D_CFG.replace(prim_path="{ENV_REGEX_NS}/Robot")
4849

50+
4951
@configclass
5052
class AnymalDRoughEnvCfg_PLAY(AnymalDRoughEnvCfg):
5153
def __post_init__(self):

source/isaaclab_tasks/isaaclab_tasks/manager_based/locomotion/velocity/velocity_env_cfg.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from isaaclab.utils.assets import ISAAC_NUCLEUS_DIR, ISAACLAB_NUCLEUS_DIR
2727
from isaaclab.utils.noise import UniformNoiseCfg as Unoise
2828

29-
3029
import isaaclab_tasks.manager_based.locomotion.velocity.mdp as mdp
3130
from isaaclab_tasks.utils import PresetCfg, preset
3231

@@ -162,6 +161,7 @@ def __post_init__(self):
162161
@configclass
163162
class EventsCfg:
164163
"""Configuration for events."""
164+
165165
# startup
166166
physics_material = EventTerm(
167167
func=mdp.randomize_rigid_body_material,
@@ -194,15 +194,15 @@ class EventsCfg:
194194
"com_range": {"x": (-0.05, 0.05), "y": (-0.05, 0.05), "z": (-0.01, 0.01)},
195195
},
196196
),
197-
newton=None
197+
newton=None,
198198
)
199199

200200
collider_offsets = EventTerm(
201201
func=mdp.randomize_rigid_body_collider_offsets,
202202
mode="startup",
203203
params={
204204
"asset_cfg": SceneEntityCfg("robot", body_names=".*"),
205-
"contact_offset_distribution_params": (0.01, 0.01)
205+
"contact_offset_distribution_params": (0.01, 0.01),
206206
},
207207
)
208208

@@ -251,7 +251,6 @@ class EventsCfg:
251251
)
252252

253253

254-
255254
@configclass
256255
class RewardsCfg:
257256
"""Reward terms for the MDP."""

0 commit comments

Comments
 (0)