Hi,
If I want to get the contact forces of an object that I imported using the URDF importer (there is only one link, link_object
), how should I set the parameters like contact_filter_prim_paths_expr
?
I have set the parameters for RigidPrimView
as shown below, but nothing is being detected by get_contact_force_data
.
Is there any solution?
Thank you in advance.
self.contact_filter_prim_paths_expr = ["/World/Object/*/link_object"]
# self.contact_filter_prim_paths_expr = ["/World/Object/*/link_object/Xform"]
# self.contact_filter_prim_paths_expr = ["/World/Object/*/Xform"]
self._objects = RigidPrimView(prim_paths_expr="/World/Object/*/link_object", name="object_view",
contact_filter_prim_paths_expr=self.contact_filter_prim_paths_expr, max_contact_count=1)
scene.add(self._objects)
contact_forces = object_views.get_contact_force_data()