Physical Agents: Theory and Practice