Tool to give physical reasoning to robots