Click on a thumbnail sketch to see the full size picture.
This page will explain how to run the Robot System Simulator to debug your software.
The C code and the Tcl code that I provide is a functioning version of the default code with a simple robot controlled from it.
My preference is to maintain the C code and the Tcl code in separate directories. That works well under Linux. But to make it work you will want to symlink the binary across. From the Tcl directory
ln -s path_to_the_c_code/main main
Windoze lacks the concept of a symlink. You can either put all the files into one directory, or you can copy the "main" executable each time you update it.
To run the simulator simply run
./RoboSystem.tclfrom the Tcl directory. Three windows will appear.