Skip to content

[Bug Report] multi_mesh_ray_caster #4346

@Gaoxinyigithub

Description

@Gaoxinyigithub

If you are submitting a bug report, please fill in the following details and use the tag [bug].

Describe the bug

I have a global scene, and it contains a lot of meshes. Also i create a robot in each env.so that,i have one scene with multi robots in it.Then,i want to use multi_mesh_ray_caster to get the ray point. when move the meshes,it should give the move point.but there is a error

Image

Steps to reproduce

# ray

ray = MultiMeshRayCasterCfg(
    prim_path="{ENV_REGEX_NS}/Robot/base",
    update_period=1/30,
    offset=RayCasterCfg.OffsetCfg(pos=(0.0, 0.0, 0.5), rot=(0.0, 0.0, 0.0, 0.0)),
    max_distance=3.0,
    pattern_cfg=patterns.LidarPatternCfg(
        channels=40, vertical_fov_range=[-90, 90], horizontal_fov_range=[-180, 180], horizontal_res=8
    ),
    debug_vis=True,
    ray_alignment='base',
    reference_meshes=True,
    mesh_prim_paths=[MultiMeshRayCasterCfg.RaycastTargetCfg(
        prim_expr="/World/obs",
        is_shared=True,              
        merge_prim_meshes=False,
        track_mesh_transforms=True,  
    )],
)

and if i modify prim_expr="/World/obs" to prim_expr="/World/obs/.*" , the api do not seem it as a global scene, the mesh num of each env is wrong

the example prim of the mesh '/world/obs/Rock2_315'[rigidbody],and i move mesh with

tree_point = scene['Rock2_315'].data.root_state_w
print(tree_point)
tree_point[:, 0:3] = tree_point[:, 0:3] + torch.tensor([[random.random() * 10, random.random() * 10, 0]],
device=device)
scene['Rock2_315'].write_root_state_to_sim(tree_point)
sim.step()
scene.reset()

  • Commit: [e.g. 8f3b9ca]
  • Isaac Sim Version: 5.0
  • OS: 22.04
  • GPU: RTX 5090
  • CUDA: 12.8
  • GPU Driver:580.95.05

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions