Mathematical modeling of a robot collision with its environment | Synapse