Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

External dependencies
The scripts often uses matplotlib to plot graphics and numpy and scipy for advanced numerical routines. If you have problems running the scripts make sure these Python libraries are installed on your system.

Modifying Consequences of modifying the ca2 debug file format
As you can imagine, the parsing of the debug file is strongly dependent on its format. This means that if you change the name of the attributes written in the file for example, the scripts might not work as expected. The parsing does not depend on the order of the attributes so it is safe to change it.

...

  1. Run a simulation (or an experiment) to obtain the debug files. Do not stop the program with CTRL+C or the debug file will not be terminated correctly.
  2. Open plot_trajectory.py and set the car number and the paths to debug files you want to analyze.
  3. Run the script by typing python plot_trajectory.py on the console.
  4. Focusing the console, use keys (lowercase) 'n' to go to the next step, 'p' to go to the previous one, 'q' to quit.

The script displays four plotplots. On the top left corner there is the path and the trajectory of the car with some information. The little red cross represents the target point of the path. The other 3 graphics show the evolution of some attribute in time. You can configure which attribute to plot with the following precedure.

...