code use to reproduce the results is the following
# Print rigid contacts per robot:
for env in envs:
actor_count = gym.get_actor_count(env)
for i in range(actor_count):
actor_handle = gym.get_actor_handle(env, i)
contacts = list(gym.get_env_rigid_contacts(env))
I would like to aquire all contacts of all envs. But the solution of Daniel, iterating through all envs, seams to be quite expensive. I tried to use get_rigid_contacts(), but it throws following error:
[Error] [carb.gym.plugin] Function GymGetRigidContacts cannot be used with the GPU pipeline after simulation starts. Please use the tensor API if possible. See docs/programming/tensors.html for more info. [Error] [carb.gym.plugin] Function GymGetRigidContactCount cannot be used with the GPU pipeline after simulation starts. Please use the tensor API if possible. See docs/programming/tensors.html for more info.
Do you got a (fast) solution to aquire the contact information?
Could I ask the order of values in tuple format of isaacgym.gymapi.RigidContact??Especially in isaacgym 1.0rc4 version.
(0, 0, 7, 3,
(0.00947645, -0.00319322, 0.02246147),
(-0.01047741, 0.00379699, 0.02686168),
(-0.48109517, 0.07937554, -0.8730675),
(0., 0., 0.),
(0., 0., 0.),
The value of contact information is still obtained with key in isaacgym1.0rc2 version…(reference: MetaGraspNet/flairop_paralleljaw_physics_simulation.py at 47057ba15c5d9e3e69e48d00623068f1623d09d9 · maximiliangilles/MetaGraspNet · GitHub)