Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] raycast sensor to measure objects generated in each environment. #1804

Open
Bonseok-Gu99 opened this issue Feb 7, 2025 · 2 comments · May be fixed by #1886
Open

[Question] raycast sensor to measure objects generated in each environment. #1804

Bonseok-Gu99 opened this issue Feb 7, 2025 · 2 comments · May be fixed by #1886

Comments

@Bonseok-Gu99
Copy link

I was using this repository for reinforcement learning control of the Unitree A1.
I make some object for each environment like below(pictures) and add cube like this
CUBE_CFG = AssetBaseCfg(
prim_path="/World/Origin.*/Cube",
spawn=sim_utils.CuboidCfg(
size=(3., 3., 0.5),
# rigid_props=sim_utils.RigidBodyPropertiesCfg(),
# mass_props=sim_utils.MassPropertiesCfg(mass=1.0),
collision_props=sim_utils.CollisionPropertiesCfg(),
visual_material=sim_utils.PreviewSurfaceCfg(diffuse_color=(1.0, 1.0, 1.0)),
),
init_state=AssetBaseCfg.InitialStateCfg(pos=(0, 0, 2)),
)
self.scene.obj = CUBE_CFG.replace(prim_path="{ENV_REGEX_NS}/OBJ")
Image

i tried below

height_scanner = RayCasterCfg(
    prim_path="{ENV_REGEX_NS}/Robot/base",
    offset=RayCasterCfg.OffsetCfg(pos=(0.0, 0.0, 20.0)),
    attach_yaw_only=True,
    pattern_cfg=patterns.GridPatternCfg(resolution=0.1, size=[1.6, 1.0]),
    debug_vis=True,
    'mesh_prim_paths=["{ENV_REGEX_NS}/OBJ/geometry/mesh"],'
)

and have an error 'AttributeError: 'RayCaster' object has no attribute 'drift''.

or i add one asset (Cube) and tried 'mesh_prim_paths=["/World/Cube/"],' but i got the same error
i add cube like this.CUBE.func("/World/Cube", CUBE, translation=(0.0, 0.0, 1.0))
CUBE = sim_utils.CuboidCfg(
size=(10., 10., 0.5),
collision_props=sim_utils.CollisionPropertiesCfg(),
visual_material=sim_utils.PreviewSurfaceCfg(diffuse_color=(1.0, 1.0, 1.0)),
)

Is there a way to configure the raycast sensor to measure objects generated in each environment?
Or is there a way to add a single object and configure the raycast sensor to measure it?

Is there update for Raycast Sensor sensing multi static mesh or dynamic mesh?

@edubya
Copy link

edubya commented Feb 8, 2025

I am guessing that your objects do not all belong to the same mesh. I was getting similar errors until I merged all objects into a single mesh in Isaac Sim.

There are many issues / discussions about RayCasterCamera limited to a single static mesh.

@RandomOakForest
Copy link
Collaborator

RandomOakForest commented Feb 14, 2025

Thanks for posting this. There have been no updates to the Raycast Sensor, it seems it as in version 1.4.0. The current doc can be found here.

@timkobiolka timkobiolka linked a pull request Feb 16, 2025 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants