Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Not sure I post question in right place(change sumo v_type problem)
  • From: <Maria.Armellini@xxxxxx>
  • Date: Mon, 7 Sep 2020 11:58:10 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • Ironport-phdr: 9a23:TWJz1BL5Mk4cOUYvVdmcpTZWNBhigK39O0sv0rFitYgeLP7xwZ3uMQTl6Ol3ixeRBMOHsqwC0reO+Py7EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCe8bL9oMRm7rRndusYZjIZsN6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhSEaPDA77W7XkNR9gqJFrhy8uxxxzY3aYI+XO/p/YqzScsgXSnBdUsZTTSFNHp+wYokJAuEcPehYtY79p14WoBa5AgejHvnvyj5SiXPswaA6yeEhHh/C3AwkHtIOtnXUoc7oO6cWS+C51rTHwivaYv5QxDzy55TGfAo7rvGQQbJ/b9DRyU83Gg7EkFidt5DpMjya2OkQs2aV4OltWP+uhmMjtQx8oyaiy9kxhoXUhY8YyU3I+CVlzYsrONC1TEx2b965HJZetiyXMZZ9TM0lQ2Ftoik6y7sGtIamcygO0pQr3QPQZOKBfoOV4RzjTP6cLSpkiH5/Zb6yhBm//VK9xuDyVcS4ykhGojRdntXRtH0ByQbf5taaRvdn40us2zeC2xrO5uxCPEs6j7DUK4Q7zb41jpcTtEPDETLol0jul6+Wc1kk+vCv6+T6frXqvp+cOJFwigH5KqkglMqxD+o3PAYOX2aV/uey2rr580HnXrlEgfw5n7fDvJDbI8QburS5DBVP3ok+7xa/FS2q38kGknUfLVJFfgyIj5TxNl3TPPz0F+qzjlejnTtx2vzLML7sDo/TInTdiLvheKxy609YyAo919Bf4JdUB6kGLv3pQE/xtcbXAgUlPgyuxuboFtF91ocfWWKJA6+UK77dsVuS5u41PuaDepcZuCzhJPg9+/7ukXg5lEcGfam02JsXb2m0Hul9I0qHe3rhmckOHnsOvgo/VOzqk0ONXSRUZ3aoUKJvrg08Xda9EILEA522jaap0Sy/H4VNayZBEF/aQlnycIDRD9IFciObZOZ7lzEAUbmnSqct0QvouAKsmOkvFfbd5iBN7cGr79Ny/eCGzRw=
  • Ironport-sdr: RoMvM49beW1IQYkPn4ToEjYTgWXhjnRLRl55VcDAL6At76/opdYjV6kndHXpnjb/oT8pxeAbsa X6xQJui9HwGg==
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWhPIO1dKSZGF7z0aiSyWvrba7MaldDUFA
  • Thread-topic: [sumo-user] Not sure I post question in right place(change sumo v_type problem)

Hi Jin,

 

With the command traci.vehicle.setType() you are assigning a new vehicle-type to the vehicle. So you are changing from AudiTT vehicle-type to AudiA2, this means that not only the car following model will be changed but also all other parameters of vehicle-type, for example the maxSpeed.

I think there is no other way to change the car following model in Traci. You can check the following links for more information:

https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html

https://sumo.dlr.de/docs/TraCI/Vehicle_Value_Retrieval.html

https://sumo.dlr.de/docs/TraCI/Change_VehicleType_State.html

 

Regards,

Giuliana

 

 

From: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] On Behalf Of J
Sent: Montag, 7. September 2020 10:36
To: sumo-user@xxxxxxxxxxx
Subject: [sumo-user] Not sure I post question in right place(change sumo v_type problem)

 

Hello:

 

Hope this email finds you well

Here is my question:

 

I know we can use traci.vehicle.setType("a new type") to change the car-following mode, but is there any way to preserve the same ID name

with different car-follow-type.

 

For example, in the route file:

<vType id="AudiTT" maxSpeed="15.00" carFollowModel="IDM"/> <vType id="AudiA2" maxSpeed="15.00" carFollowModel="Krauss"/>

<vehicle id="vehicle_0" type="AudiTT" depart="0.00" route="route_0" />

 

For example, in the route file: I have a vtype "AudiTT" with IDM model and Audio A2 with Krauss model

when I change the type for "vehicle_0" the whole thing has been changed

is there a way to assign "Krauss" to Audi TT with Traci python in runtime?

 

Best regards

 

Jin


Back to the top