-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
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?