You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The distance sensor returns the distance between two bodies/geoms normally, but if one of the elements is an SDF geom, then it will only return the penetration distance if the geoms are in contact. So if the objects are not in contact then the distance sensor doesn't actually sense the distance and will just return the cutoff value.
I'll make this a feature request rather than a bug since this behavior seems intentional/place-holding based on the mjc_SDF function that gets used when a distance sensor between an SDF and most other geom types is created.
You can see that the distance sensor reading between the mobile sphere and the sphere changes value as you slide the mobile sphere around. But the distance sensor reading between the torus (SDF) and the mobile sphere never changes unless the two geoms come into contact.
The text was updated successfully, but these errors were encountered:
The feature, motivation and pitch
The distance sensor returns the distance between two bodies/geoms normally, but if one of the elements is an SDF geom, then it will only return the penetration distance if the geoms are in contact. So if the objects are not in contact then the distance sensor doesn't actually sense the distance and will just return the
cutoff
value.I'll make this a feature request rather than a bug since this behavior seems intentional/place-holding based on the mjc_SDF function that gets used when a distance sensor between an SDF and most other geom types is created.
Alternatives
No response
Additional context
I used the following model to test:
You can see that the distance sensor reading between the mobile sphere and the sphere changes value as you slide the mobile sphere around. But the distance sensor reading between the torus (SDF) and the mobile sphere never changes unless the two geoms come into contact.
The text was updated successfully, but these errors were encountered: