1313import isaaclab .utils .string as string_utils
1414from isaaclab .utils .types import ArticulationActions
1515
16- from . import ActuatorBaseCfg
16+ from .actuator_base_cfg import ActuatorBaseCfg
1717
1818
1919class 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