How To Link SUMO - V2Xgithub/WiLabV2Xsim GitHub Wiki

If you want to link SUMO with this simulator, The following main steps are needed:

Step 1: Set environment

To finalize your setup, please make sure to set the SUMO_HOME environment variable and have it point to the directory of your SUMO installation. please see the SUMO installing.

E.g.

SUMO_HOME="D:\Program Files (x86)\Eclipse\Sumo"

More details could be found after SUMO is installed, please check the path:

...\SUMO_installation_directory\tools\contributed\traci4matlab\user_manual.pdf

Step 2: Add traci4matlab.jar to the Matlab static java directory

  • set a new txt file with name "javaclasspath.txt"
  • save the path of traci4matlab.jar into this file: E.g.

    ...\SUMO_installation_directory\tools\contributed\traci4matlab\traci4matlab.jar

  • save this txt file in the preferences directory of Matlab, which can be identified using the prefdir command.
  • At last, you may need to restart the Matlab to make the setting available

Step 3: Add the traci4matlab directory to your Matlab path

This step is done automatically in the simulator