The UC Berkeley professor talks about using algorithms to make it safer for robots and people to cross paths.