Skip to content

[Question] Identifying Contacts on different regions of a Rigid Body #3578

@george-nehma

Description

@george-nehma

Question

I have a rigid body which has 4 legs, and I would like to assign a contact sensor to the foot of each of these legs. Now being a RigidBody would be preferable because the body as a whole is rigid and nothing really moves so making the body as part of an Articulation doesn't make sense (and I have had issues with using the correct joints so that when contact is made the body doesnt just separate).

That being said currently I set up my robot as a RigidBody, my contact sensor like:
contact_forces: ContactSensorCfg = ContactSensorCfg( prim_path="/World/envs/env_.*/Robot/MainBody", update_period=0.0, track_air_time = True, debug_vis=True, history_length=5, filter_prim_paths_expr=["/World/ground"]

and initialise it in the environment with self._contact_forces = ContactSensor(self.cfg.contact_forces) and then self.scene.sensors["contact_forces"] = self._contact_forces.

Does anyone know of a method that would work for this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions