[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Inquiry Regarding C++ Equivalent Code for SUMO TraCI
|
Dear Mazyiar,
please look into libtraci (C++ API) or libsumo (dll) and study the given example source code.
Best regards
Mirko
PS: Although you get help here about using SUMO, this is not equivalent to a "customer service" you get when you a) buy a software b) pay a fee.
-----Original-Nachricht-----
Betreff: [sumo-user] Inquiry Regarding C++ Equivalent Code for SUMO TraCI
Datum: 2024-01-12T22:58:55+0100
Von: "maziyar layegh via sumo-user" <sumo-user@xxxxxxxxxxx>
An: "sumo-user@xxxxxxxxxxx" <sumo-user@xxxxxxxxxxx>
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,