How to change a physic simulated bone position?

I’m trying to make something with physics simulated bones that are also allowed to move linear. As it if often case ragdoll collisions are problematic. For instance a bone can land on the other side of a wall and get stuck there. Now I would like to manually fix issues when a bone is too far away. But the problem is there seems no way to change locations of bones while they are physics simulated nor can I turn the collision off of a bone so I could force it back through the wall.

Is there a way to directly change the location of a bone or anything else that allow me to resolve such issues?