Hi @berternats - The get_sensor_readings function is designed to work with the default prim in the stage. This is because the function needs to know which prim (or object) in the scene it should get the sensor readings from.
If you’re having trouble with setting the default prim due to a URDF file problem, it might be worth trying to resolve that issue first. The URDF file defines the structure and properties of the robot, and if there’s an error in the file, it could cause problems with the simulation.
However, if you want to listen to the contact sensor without setting the default prim, you might need to modify the get_sensor_readings function or create a new function that can get the sensor readings from a specified prim. This would involve accessing the sensor data directly from the physics engine, which might require a deeper understanding of the Omniverse physics API.