Search code examples
pythondrake

Is there a way to detect if two bodies/frames are fixed in Drake?


Does anybody know of an easy way to determine if two bodies (or frames) are fixed with respect to one another in Pydrake? Thank you!


Solution

  • There is the GetBodiesWeldedTo() method on MultibodyPlant.

    Python doc is here. Given some reference body, it will return a list of all the bodies connected to it by one or more weld joints.

    If you are looking at welds for collision filtering purposes, note that Drake release 1.2.0 and later will ignore collisions within all welded groups of bodies by default.