IsaacLab icon indicating copy to clipboard operation
IsaacLab copied to clipboard

[Question] Pattern did not match, failed to find articulation error

Open Seize-Future opened this issue 1 year ago • 8 comments

Question

Hello there,

I'm trying to import Leap Hand URDF into USD with Isaac Sim URDF Importer. After deriving the USD file, I use ArticulationCfg class to instantiate the leap hand model, however, I found errors below:

RuntimeError: Failed to find an articulation when resolving '/World/envs/env_.*/Robot'. Please ensure that the prim has 'USD ArticulationRootAPI' applied.

Then, I set the leap hand prim as articulation root instead of the root joint, this error disappeared, while another error occurred:

2025-02-11 12:32:49 [15,706ms] [Warning] [omni.physx.tensors.plugin] Failed to find articulation at '/World/envs/env_0/Robot' 2025-02-11 12:32:49 [15,706ms] [Warning] [omni.physx.tensors.plugin] Failed to find articulation at '/World/envs/env_1/Robot' 2025-02-11 12:32:49 [15,706ms] [Error] [omni.physx.tensors.plugin] Pattern '/World/envs/env_*/Robot' did not match any rigid bodies 2025-02-11 12:32:49 [15,706ms] [Error] [omni.physx.tensors.plugin] Provided pattern list did not match any articulations

It seems that the USD file generated by the URDF Importer doesn't have articulation. I was hoping someone could lend me a hand. I'd be delighted to hear about it, thank you in advance!

Kind Regards,

Zhaohui Lin :)

Seize-Future avatar Feb 11 '25 12:02 Seize-Future

Usually when I see those errors it is because there is an issue either with the URDF or how I configured the importer. Are you able to share the URDF and the ArticulationCfg you used to generate the USD?

KyleM73 avatar Feb 11 '25 15:02 KyleM73

leaphand.urdf Thank you so much, you're so nice, buddy! I've uploaded the URDF file in the link above, and the ArticulationCfg is shown as below. Great appreciation in advance for your generous help!

LEAP_HAND_CFG = ArticulationCfg(
    spawn=sim_utils.UsdFileCfg(
        # usd_path=f"leap/leap_hand/leaphand_taskB_v2.usd",
        usd_path=f"leap/leap_hand/leaphand_v1.usd",
        activate_contact_sensors=False,
        rigid_props=sim_utils.RigidBodyPropertiesCfg(
            disable_gravity=True,
            retain_accelerations=False,
            enable_gyroscopic_forces=False,
            angular_damping=0.01,
            max_linear_velocity=1000.0,
            max_angular_velocity=64 / math.pi * 180.0,
            max_depenetration_velocity=1000.0,
            max_contact_impulse=1e32,
        ),
        articulation_props=sim_utils.ArticulationRootPropertiesCfg(
            enabled_self_collisions=True,
            solver_position_iteration_count=8,
            solver_velocity_iteration_count=0,
            sleep_threshold=0.005,
            stabilization_threshold=0.0005,
        ),
        # collision_props=sim_utils.CollisionPropertiesCfg(contact_offset=0.005, rest_offset=0.0),
    ),
    init_state=ArticulationCfg.InitialStateCfg(
        pos=(0.0, 0.0, 0.5),
        rot=(0.257551, 0.283045, 0.683330, -0.621782),
        joint_pos={"^(?!joint_0).*": 0.0, "joint_0": 0},
    ),
    actuators={
        "fingers": ImplicitActuatorCfg(
            joint_names_expr=["joint_[0-15]"],
            effort_limit=0.5,
            velocity_limit=100.0,
            stiffness=3.0,
            damping=0.1,
            friction=0.01,
        ),
    },
    soft_joint_pos_limit_factor=1.0,
)

Seize-Future avatar Feb 12 '25 02:02 Seize-Future

I have a similar questions when I try to run the command"./isaaclab.sh -p scripts/tutorials/03_envs/create_cartpole_base_env.py --num_envs 32",but there is an error "RuntimeError: Failed to find an articulation when resolving '/World/envs/env_.*/Robot'. Please ensure that the prim has 'USD ArticulationRootAPI' applied." Is it bacause there is some conflicts in my environment configuration or packages installed?

Future-T800 avatar Feb 14 '25 09:02 Future-T800

Thanks for following up. It seems you may need a way to specify the prim path as in:

robot_cfg: ArticulationCfg = LEAP_HAND_CFG.replace(prim_path="/World/envs/env_.*/Robot")

RandomOakForest avatar Feb 14 '25 13:02 RandomOakForest

Same issue, @KyleM73 do you remember what fixed it for you?

For context, I'm using the IsaacLabExtensionTemplate, and I've renamed isaaclab_assets to isaaclab_ext_assets so my assets are independent from the packages in IsaacLab's isaaclab_assets. Not sure if that's the right approach, but when I run using python scripts/rl_games/train.py --task=Isaac-Lift-Cube-Bimanual-UR5-v0, I get the following error.

Error: RuntimeError: Failed to find an articulation when resolving '/World/envs/env_.*/Robot'. Please ensure that the prim has 'USD ArticulationRootAPI' applied.

ArticulationCfg:

    spawn=sim_utils.UrdfFileCfg(
        asset_path=f"source/bimanual_lift/bimanual_lift/tasks/manipulation/lift/config/bimanual_ur5/ur5e_allegro/robots/dual_ur5e_allegro_real_v2.urdf",
        usd_dir=f"source/isaaclab_ext_assets/data/Robots/bimanual_ur5",
        usd_file_name=f"dual_ur5e_allegro_real_v2.usd",
        fix_base=True,
        visible=True,
        activate_contact_sensors=False,
        rigid_props=sim_utils.RigidBodyPropertiesCfg(
            disable_gravity=False,
            max_depenetration_velocity=5.0,
        ),
        articulation_props=sim_utils.ArticulationRootPropertiesCfg(
            enabled_self_collisions=True, solver_position_iteration_count=8, solver_velocity_iteration_count=0
        ),
        joint_drive=sim_utils.UrdfConverterCfg.JointDriveCfg(
            drive_type="force",
            target_type="position",
            gains=sim_utils.UrdfConverterCfg.JointDriveCfg.PDGainsCfg(stiffness=None, damping=None)
        ),
    ),

itsmehere avatar Feb 20 '25 04:02 itsmehere

Hi @struggler176393 I have same issue, I found this solution, but I didn't find the option to add ArticulationRootAPI in isaacsim4.5 UI. Have you solve this problem?

Junb0Dong avatar Mar 03 '25 13:03 Junb0Dong

Hi @struggler176393 I have same issue, I found this solution, but I didn't find the option to add ArticulationRootAPI in isaacsim4.5 UI. Have you solve this problem?

Can you create your own thread and include a little more information about your specific case?

StrainFlow avatar Mar 21 '25 15:03 StrainFlow

Hi @struggler176393 I have same issue, I found this solution, but I didn't find the option to add ArticulationRootAPI in isaacsim4.5 UI. Have you solve this problem?

Can you create your own thread and include a little more information about your specific case?

Thank you for your reply! I have solved the problem by this solution

Junb0Dong avatar Mar 24 '25 12:03 Junb0Dong