Skip to content

Commit 4afdb3d

Browse files
test: cover Go2 calf actuator limits
1 parent 0c181bb commit 4afdb3d

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
"""Tests for predefined Unitree robot configurations."""
7+
8+
from isaaclab_assets.robots.unitree import UNITREE_GO2_CFG
9+
10+
11+
def test_go2_calves_use_reduced_joint_limits():
12+
"""Verify the Go2 calf actuator reflects the knee reduction."""
13+
base_legs = UNITREE_GO2_CFG.actuators["base_legs"]
14+
calves = UNITREE_GO2_CFG.actuators["calves"]
15+
16+
assert base_legs.joint_names_expr == [".*_hip_joint", ".*_thigh_joint"]
17+
assert calves.joint_names_expr == [".*_calf_joint"]
18+
assert calves.actuator_effort_limit == 45.05
19+
assert calves.saturation_effort == 45.05
20+
assert calves.actuator_velocity_limit == 15.65

0 commit comments

Comments
 (0)