Skip to content

Commit 9ceec8f

Browse files
committed
revert the last change
1 parent 1de0d8a commit 9ceec8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/isaaclab/isaaclab/actuators/actuator_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import isaaclab.utils.string as string_utils
1414
from isaaclab.utils.types import ArticulationActions
1515

16-
from . import ActuatorBaseCfg
16+
from .actuator_base_cfg import ActuatorBaseCfg
1717

1818

1919
class ActuatorBase(ABC):
@@ -384,7 +384,7 @@ def _parse_joint_parameter(
384384
param[:, :, i] = float(v)
385385
elif isinstance(cfg_value, dict):
386386
# if dict, then parse the regular expression
387-
indices, _, values = string_utils.resolve_matching_names_values(cfg_value, self.joint_names)
387+
indices, j, values = string_utils.resolve_matching_names_values(cfg_value, self.joint_names)
388388
# if the expected shape has two dimensions, we expect floats
389389
if len(expected_shape) < 3:
390390
# note: need to specify type to be safe (e.g. values are ints, but we want floats)
@@ -396,7 +396,7 @@ def _parse_joint_parameter(
396396
# Raise an exception if the tuple is the incorrect length
397397
if len(v) is not expected_shape[2]:
398398
raise ValueError(
399-
f"Invalid tuple length for parameter {param_name} on joint {_[i]} at index"
399+
f"Invalid tuple length for parameter {param_name} on joint {j[i]} at index"
400400
f" {indices[i]},"
401401
+ f" expected {expected_shape[2]} got {len(v)}."
402402
)

0 commit comments

Comments
 (0)