Sensing and modeling collisions for safer human-robot interaction