Skip to content
Discussion options

You must be logged in to vote

If you want to know when whether a specific geom is touching anything, you can create a site that envelopes it, assign a touch sensor to the site, and read the sensor value (which, in this case, will be the normal force).

If you want the list of geoms in contact with a certain geom, you would indeed have to scan the list of Data->contact to find that out.

Invoking collision detection manually is possible in principle (this is where the specific collision callbacks reside, and here there's some explanation how it works). Particularly, if you want to know whether a specific pair of geoms is in contact, the MuJoCo Way would be to define a pair and force collision detection on this pair at ev…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@makeplayhappy
Comment options

Answer selected by makeplayhappy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants