Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Inquiry Regarding C++ Equivalent Code for SUMO TraCI


Dear SUMO Customer Service,

I hope this message finds you well, and I am currently working on a project that involves connecting SUMO into a C++ application. In my Python implementation, I found the following python code to set up TraCI:

import os, sys
if 'SUMO_HOME' in os.environ:
      tools = os.path.join(os.environ['SUMO_HOME'], 'tools')
      sys.path.append(tools)
else:
     sys.exit("please declare environment variable 'SUMO_HOME'")


I am now looking for the equivalent code in C++ to achieve the same functionality. Specifically, I need to set up TraCI for communication between my C++ application and SUMO.

Could you please provide guidance or a code snippet that accomplishes this task in C++? I appreciate your assistance in helping me seamlessly integrate SUMO into my C++ project.

Thank you for your time and support. I look forward to your prompt response.

Best regards,


Back to the top