Martin Luther King's iconic I Have a Dream speech is full of allusions. Let's look at a few: Dr. King's speech (1963) was made 100 years after Lincoln's Emancipation Proclamation (1863) that freed all slaves in rebel territories.
There are a number of commercial packages you can use for such purposes. Comsol multiphysics simulation software is a general purpose physics modelling software package that I belive can deal with electromagnitism. The link to their website is http://www.uk.comsol.com. Ansys is another commercial vendor that provides a electromagnetic physics module. There website is http://www.ansys.com.
The software simulates a real life research robot called the Khepera III. In theory, the control logic can be loaded into a real Khepera III robot with minimal refactoring, and it will perform the same as the simulated robot. In other words, programming the simulated robot is analogous to programming the real robot.