i have this code:
def add_contact_sensors_around_circle(radius, num_sensors, x_position):
sensors =
angle_increment = 2 * np.pi / num_sensors # Angle between each sensor
for i in range(num_sensors):
angle = i * angle_increment
y_position = radius * np.cos(angle)
z_position = radius * np.sin(angle)
rad = 0.005
# Create a visual sphere at the same position as the contact sensor
sphere = VisualSphere(
prim_path=f"/World/UR10/ee_link/transparent_sphere_{i}",
name=f"transparent_sphere_{i}",
translation=[1.18 + y_position, 0.45, 0.05 + z_position], # Position relative to the end effector
scale=[rad, rad, rad] # Adjust scale as needed
)
# Add the sphere to the world
my_world.scene.add(sphere)
# Create and configure the contact sensor
sensor = ContactSensor(
prim_path=f"/World/UR10/ee_link/transparent_sphere_{i}/contact_sensor_{i}",
name=f"suction_cup_contact_sensor_{i}",
min_threshold=0,
max_threshold=10000000,
)
# Add the sensor to the world
my_world.scene.add(sensor)
sensors.append(sensor)
return sensors
to add 6 different sensor into a 6 spheres attatched to a gripper. the problem is that they act as a single sensor, when opne senses all detect the contact. i tried moving them very far, but nothing works.